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

Name

Description

ctx

EVP_PKEY context configured for ECDH with a KDF.

len

Receives the derived‐key length in bytes.

Created with MrDocs