1

What is the size of key material required for generating MAC keys, encryption keys and IV when use TLS_DHE_RSA_WITH_AES_256_CBC_SHA ? How to calculate it?

kelalaka
  • 49,797
  • 12
  • 123
  • 211

1 Answers1

1

TLS_DHE_RSA_WITH_AES_256_CBC_SHA is

  • 256-bit AES encryption
  • SHA-1 message authentication
  • Ephemeral Diffie-Hellman key exchange
  • Signed with an RSA certificate

We can find the answer in rfc5246

                        Key      IV   Block
Cipher        Type    Material  Size  Size
------------  ------  --------  ----  -----
NULL          Stream      0       0    N/A
RC4_128       Stream     16       0    N/A
3DES_EDE_CBC  Block      24       8      8
AES_128_CBC   Block      16      16     16
AES_256_CBC   Block      32      16     16

MAC Algorithm mac_length mac_key_length


NULL N/A 0 0 MD5 HMAC-MD5 16 16 SHA HMAC-SHA1 20 20 SHA256 HMAC-SHA256 32 32

kelalaka
  • 49,797
  • 12
  • 123
  • 211