EVP_PKEY_CTX_get_ecdh_kdf_outlen

Get the ECDH key-derivation output length from a key-exchange context.

Synopsis

Declared in <openssl/ec.h>

int
EVP_PKEY_CTX_get_ecdh_kdf_outlen(
    EVP_PKEY_CTX* ctx,
    int* len);

Return Value

1 on success, or a negative value on failure.

Parameters

NameDescription
ctxEVP_PKEY context configured for ECDH with a KDF.
lenReceives the derived-key length in bytes.