3
$\begingroup$

I have some doubts regarding AEAD ciphersuites and I need some clarification. In the following ciphersuites list:

dhe_rsa_aes_128_sha
dhe_rsa_aes_256_sha
ecdhe_ecdsa_aes_128_gcm_sha256
ecdhe_ecdsa_aes_128_sha
ecdhe_ecdsa_aes_256_gcm_sha384
ecdhe_ecdsa_aes_256_sha
ecdhe_ecdsa_chacha20_poly1305_sha256
ecdhe_rsa_aes_128_gcm_sha256
ecdhe_rsa_aes_128_sha
ecdhe_rsa_aes_256_gcm_sha384
ecdhe_rsa_aes_256_sha
ecdhe_rsa_chacha20_poly1305_sha256
rsa_aes_128_sha
rsa_aes_256_sha
rsa_des_ede3_sha

I have some questions:

  1. Can you help me identify the ciphersuites that provide Authenticate Encryption with Associated Data (AEAD) from those that do not?

  2. Are GCM and Poly1305 ciphers indicates AEAD and the rest of ciphers do not provide it? Can you list all the AEAD algorithms?

  3. Is it always the case that AE ciphersuites must be also Forward Secrecy ciphersuites? or there is no relation that binds the two?

  4. Is Authenticated Encryption (AE) is the same AEAD? or they are different terms?

$\endgroup$

2 Answers 2

5
$\begingroup$

Can you help me identify the ciphersuites that provide Authenticate Encryption with Associated Data (AEAD) from those that do not?

All which explicitely name gcm or chacha20_poly1305 are AEAD ciphersuites. The others use the TLS default which is MAC-then-encrypt with CBC.

Is it always the case that AE ciphersuites must be also Forward Secrecy ciphersuites?

There's no technical reason that forces this to be the case. In fact RFC 5487 defines TLS_PSK_WITH_AES_128_GCM_SHA256 which uses AES-GCM (AEAD) but doesn't offer forward-secrecy. And if you don't accept a PSK suite as an answer here, RFC 5288 defines TLS_RSA_WITH_AES_128_GCM_SHA256, which uses RSA key-transport (and thus offers no forward secrecy).

However, AEAD is what some people call "modern crypto". And as such it is usually paired with other "modern crypto", which does usually mean that you prefer to use forward-secrecy with AEAD suites and only have the non-forward secrecy ones for fallback, after all, clients who implement AES-GCM will also have all the other modern crypto like ECDHE.

Is Authenticated Encryption (AE) is the same AEAD? or they are different terms?

Technically yes. An AE scheme only needs to deliver authenticated encryption of the plaintext, the AEAD scheme also needs to authenticate data as well, so every AEAD scheme is also an AE scheme but not the other way around. Practically however, I am not aware of any scheme that is practically used and is AE but not AEAD (and even then, conversion would be quite simple).

$\endgroup$
3
  • $\begingroup$ Thanks. There is something confusing me in your answer when you say: All which explicitely name gcm or chacha20_poly1305 are AEAD ciphersuites. The others use the TLS default which is MAC-then-encrypt with CBC. When you say, MAC-then-encrypt with CBC, isn't this AE also? $\endgroup$ Commented Aug 5, 2017 at 12:57
  • 1
    $\begingroup$ @user6875880 yes, this is an AEAD construction as well, but neither of the used primitives provides AE by itself. Typically cryptographers use the term "AEAD" and "AE" only for "all-in-one" constructions / modes (even this this is technically kinda false). $\endgroup$
    – SEJPM
    Commented Aug 5, 2017 at 13:00
  • 1
    $\begingroup$ I would add the following bibliography: “Authenticated-encryption with associated-data” by Phillip Rogaway, published at ACM CCS 2002 (Rogaway's PDF), (DBLP entry) where Rogaway extends the previously concept of “Authenticated Encryption” to turn it into the current concept of AEAD $\endgroup$ Commented Feb 18, 2021 at 11:20
4
$\begingroup$

An AEAD cipher is a construction where additional authenticated data (AD or AAD) authenticated together with the IV and ciphertext. Decryption will fail if the authentication tag is validated correctly.

It is perfectly possible to generate a AEAD cipher using normal constructs. There was even a proposal to standardize AES in CBC mode with HMAC as an AEAD cipher. The combination of ChaCha20 and Poly1305 is described in RFC 7539: ChaCha20 and Poly1305 for IETF Protocols, chapter 2.8: AEAD Construction .

Just using both encryption and authentication in the same protocol is however not enough; the idea is that the authenticated cipher provides confidentiality, integrity and authenticity of the message in itself.

GCM is a mix of AES in counter mode (CTR) and GMAC internally.

Q 1 & 2: Identification of cipher suites

In your cipher suite list only the suites with gcm and chacha20_poly1305 are considered AEAD cipher suites.

Q: 3. Is it always the case that AE ciphersuites must be also Forward Secrecy ciphersuites? or there is no relation that binds the two?

There is no direct relation besides the fact that the use of authenticated encryption and forward secrecy both are modern concepts that deliver more - or at least less brittle - security. So they are often used together and in TLS 1.3 they are even required (at least in the original proposals, for initial session key establishment).

  1. Is Authenticated Encryption (AE) is the same AEAD? or they are different terms?

AEAD ciphers are a subset of AE ciphers. But it is quite common that AE ciphers provide AEAD functionality, so they may/could be used synonymously.

AE may for instance be used whenever the authentication needs to be stressed rather than the fact that additional authentication data may be present. Such as "because the cipher suite uses authenticated encryption (AE) padding oracle attacks are not possible".

$\endgroup$
1
  • 1
    $\begingroup$ beat you by 31 seconds :p Also note that your TLS 1.3 comment may not apply in all generality of this draft gets through (and it seems to have about 50-50 support in the TLS WG) ;) $\endgroup$
    – SEJPM
    Commented Aug 5, 2017 at 12:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.