tls_key_material.h
error_t tlsGenerateKeyBlock(TlsContext *context, size_t keyBlockLen)
Key expansion function.
Definition: tls_key_material.c:392
error_t tlsGenerateMasterSecret(TlsContext *context)
Master secret computation.
Definition: tls_key_material.c:143
error_t tlsGenerateSessionKeys(TlsContext *context)
Generate session keys.
Definition: tls_key_material.c:51
error_t tlsGenerateExtendedMasterSecret(TlsContext *context)
Extended master secret computation.
Definition: tls_key_material.c:193
error_t tls12Prf(const HashAlgo *hash, 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_key_material.c:729
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:810
TLS (Transport Layer Security)
error_t tlsGeneratePskPremasterSecret(TlsContext *context)
Premaster secret generation (for PSK cipher suites)
Definition: tls_key_material.c:290
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_key_material.c:602
error_t tlsExportKeyingMaterial(TlsContext *context, const char_t *label, bool_t useContextValue, const uint8_t *contextValue, size_t contextValueLen, uint8_t *output, size_t outputLen)
Export keying material per RFC 5705 standard.
Definition: tls_key_material.c:448