Initialize ctx for key derivation and apply optional algorithm parameters.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_derive_init_ex(
    EVP_PKEY_CTX* ctx,
    OSSL_PARAM const params[]);

Return Value

1 on success, or a non‐positive value on failure.

Parameters

Name

Description

ctx

Key context created for a derivation‐capable algorithm.

params

Optional OSSL_PARAM array set on the context before return, or NULL.

Created with MrDocs