[#EVP_PKEY_new_raw_public_key] = EVP_PKEY_new_raw_public_key :mrdocs: Create an EVP_PKEY from raw public key octets for algorithms that support that form. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:EVP_PKEY.adoc[EVP_PKEY]* EVP_PKEY_new_raw_public_key( int type, xref:ENGINE.adoc[ENGINE]* e, unsigned char const* pub, size_t len); ---- == Return Value New EVP_PKEY on success, or NULL on failure. == Parameters [cols="1,4"] |=== | Name| Description | *type* | Key type NID (for example EVP_PKEY_X25519, EVP_PKEY_ED25519, EVP_PKEY_EC). | *e* | Deprecated ENGINE parameter; pass NULL. | *pub* | Public key bytes in the algorithm's raw format. | *len* | Length of `pub` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#