tls_key_material.c
error_t tls12Prf(const HashAlgo *hashAlgo, const uint8_t *secret, size_t secretLen, const char_t *label, const uint8_t *seed, size_t seedLen, uint8_t *output, size_t outputLen)
Pseudorandom function (TLS 1.2)
Definition: tls_kdf.c:187
Key material generation.
error_t tlsGeneratePskPremasterSecret(TlsContext *context)
Premaster secret generation (for PSK cipher suites)
Definition: tls_key_material.c:291
__weak_func error_t tlsGenerateMasterSecret(TlsContext *context)
Master secret computation.
Definition: tls_key_material.c:143
error_t tlsPrf(const uint8_t *secret, size_t secretLen, const char_t *label, const uint8_t *seed, size_t seedLen, uint8_t *output, size_t outputLen)
Pseudorandom function (TLS 1.0 and 1.1)
Definition: tls_kdf.c:62
void tlsDumpSecret(TlsContext *context, const char_t *label, const uint8_t *secret, size_t secretLen)
Dump secret key (for debugging purpose only)
Definition: tls_key_material.c:444
error_t tlsFinalizeTranscriptHash(TlsContext *context, const HashAlgo *hash, const void *hashContext, uint8_t *output)
Finalize hash calculation from previous handshake messages.
Definition: tls_transcript_hash.c:275
TLS key derivation functions.
__weak_func error_t tlsGenerateKeyBlock(TlsContext *context, size_t keyBlockLen)
Key expansion function.
Definition: tls_key_material.c:393
Transcript hash calculation.
error_t tlsGenerateExtendedMasterSecret(TlsContext *context)
Extended master secret computation.
Definition: tls_key_material.c:193
TLS (Transport Layer Security)
error_t tlsGenerateSessionKeys(TlsContext *context)
Generate session keys.
Definition: tls_key_material.c:51
Debugging facilities.
