Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL is half symmetric and half asymmetric?

I am reading http://www.definityhealth.com/marketing/how_ssl_works.html

Looks like SSL is using asymmetric algorithm to exchange the symmetric key, after that it uses symmetric algorithm to encrypt the data.

One question, can I use asymmetric algorithm only? Like Alice and Bob both have certificate and, they are all using peer's public key to encrypt the data.

like image 457
Bin Chen Avatar asked Sep 06 '10 07:09

Bin Chen


2 Answers

No, you can't use only asymmetric encryption.

TLS (SSL) does not support encryption of application data with public key algorithms because it would make no sense: it would be much less efficient yet provide no improvement to security.

Public key encryption is not harder to break than symmetric algorithms. In fact, for all we know, there may a trick that makes breaking some asymmetric algorithms trivial, just waiting to be discovered.

Public key algorithm solve the key exchange problem, and that's how TLS and every other security protocol use them. Symmetric algorithms are used to keep data private and protect its integrity.

like image 160
erickson Avatar answered Sep 28 '22 07:09

erickson


As a general rule, one can say that asymmetric algorithms are much more computing intensive than symmetric algorithms. Thus it is very common case to use an asymmetric algorithms to exchange a symmetric key that will be used to exchange the data. It is also considered as sufficiently safe security wise.

  • Can you use asymmetric algorithms for everything? Surely you can.
  • Can you do it within SSL? I don't know.
like image 39
Didier Trosset Avatar answered Sep 28 '22 07:09

Didier Trosset