Derive keying material into key using the parameters bound to ctx.
Declared in <openssl/kdf.h>
int
EVP_KDF_derive(
EVP_KDF_CTX* ctx,
unsigned char* key,
size_t keylen,
OSSL_PARAM const params[]);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | Initialized KDF context. |
| key | Output buffer for the derived key. |
| keylen | Number of bytes to write to key. |
| params | Optional additional OSSL_PARAM array, or NULL. |