[#EVP_PKEY_derive_init] = EVP_PKEY_derive_init :mrdocs: Initialize a key context for shared‐secret derivation (key exchange). == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PKEY_derive_init(xref:EVP_PKEY_CTX.adoc[EVP_PKEY_CTX]* ctx); ---- == Return Value 1 on success, or 0 / a negative value on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Context created for a key‐exchange algorithm. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#