[#EVP_PKEY_new_raw_private_key] = EVP_PKEY_new_raw_private_key :mrdocs: Create an EVP_PKEY from raw private‐key octets (legacy NID/ENGINE form). == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:EVP_PKEY.adoc[EVP_PKEY]* EVP_PKEY_new_raw_private_key( int type, xref:ENGINE.adoc[ENGINE]* e, unsigned char const* priv, size_t len); ---- == Return Value New EVP_PKEY, or NULL on failure; free with EVP_PKEY_free(). == Parameters [cols="1,4"] |=== | Name| Description | *type* | Key type NID such as EVP_PKEY_X25519 or EVP_PKEY_ED25519. | *e* | Optional ENGINE, or NULL (ignored for provider‐only types). | *priv* | Raw private‐key bytes in the algorithm‐native format. | *len* | Length of `priv` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#