Expand description
TLS key derivation functions.
Implements:
- TLS 1.2 PRF (Pseudo-Random Function) based on HMAC-SHA256/SHA384
- TLS 1.3 HKDF-based key derivation
Structs§
- Tls12
KeyMaterial - TLS 1.2 key material derived from master secret.
- Tls13
KeyMaterial - TLS 1.3 key material derived from traffic secret.
Enums§
- Aead
Algorithm - AEAD algorithm for TLS record encryption.
- Hash
Algorithm - Hash algorithm used for key derivation.
- KeyDerivation
Error - Errors during key derivation.
Functions§
- derive_
tls12_ keys - Derive TLS 1.2 key material from master secret.
- derive_
tls13_ keys - Derive TLS 1.3 key material from a traffic secret.
- hash_
for_ cipher_ suite - Get the hash algorithm for a TLS cipher suite.
- tls12_
prf - TLS 1.2 PRF (Pseudo-Random Function).