Allocate and return the encoded public-key octet string for pkey.
Declared in <openssl/evp.h>
size_t
EVP_PKEY_get1_encoded_public_key(
EVP_PKEY* pkey,
unsigned char** ppub);
Length of the encoded public key in bytes, or 0 on failure.
| Name | Description |
|---|---|
| pkey | Key whose public key is exported. |
| ppub | On success, set to a newly allocated buffer holding the encoded public key; free with OPENSSL_free(). |