Skill 5.2.3
Symmetric/Asymmetric encryption/Elliptic curve cryptography (ECC)
Key Concepts
Symmetric encryption uses one shared secret key to encrypt and decrypt. It is fast and suits bulk data; AES (128, 192 or 256-bit keys) is the standard, and ChaCha20 is a modern stream cipher. The challenge is distributing keys securely: n parties need n(n-1)/2 keys.
Asymmetric encryption uses a key pair: data encrypted with the public key can be decrypted only with the private key, and a signature made with the private key is verified with the public key. It solves key distribution (each party needs one pair, 2n keys in total) but is slower. RSA relies on factoring large numbers; Diffie-Hellman agrees a shared secret over an insecure channel; elliptic curve cryptography (ECC) gives equivalent security with much shorter keys (a 256-bit ECC key is roughly equivalent to a 3,072-bit RSA key), which suits mobile and IoT devices.
Hybrid cryptography, as in TLS, uses asymmetric methods to agree or exchange a symmetric session key, then symmetric encryption for the data.