EVP_PKEY_CTX_set1_tls1_prf_secret

Set the TLS1-PRF secret on a key context (copies sec).

Synopsis

Declared in <openssl/kdf.h>

int
EVP_PKEY_CTX_set1_tls1_prf_secret(
    EVP_PKEY_CTX* pctx,
    unsigned char const* sec,
    int seclen);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
pctxContext configured for TLS1-PRF.
secSecret octets to copy.
seclenLength of sec in bytes.