[#EVP_PKEY_set1_encoded_public_key] = EVP_PKEY_set1_encoded_public_key :mrdocs: Set the public key on `pkey` from an encoded public‐key octet string. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PKEY_set1_encoded_public_key( xref:EVP_PKEY.adoc[EVP_PKEY]* pkey, unsigned char const* pub, size_t publen); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *pkey* | Key object that receives the public key (type must already be set). | *pub* | Encoded public‐key bytes (format is algorithm‐specific, for example a TLS point). | *publen* | Length of `pub` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#