EVP_KDF_derive

Derive keying material into key using the parameters bound to ctx.

Synopsis

Declared in <openssl/kdf.h>

int
EVP_KDF_derive(
    EVP_KDF_CTX* ctx,
    unsigned char* key,
    size_t keylen,
    OSSL_PARAM const params[]);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxInitialized KDF context.
keyOutput buffer for the derived key.
keylenNumber of bytes to write to key.
paramsOptional additional OSSL_PARAM array, or NULL.