Export the raw public key bytes of pkey into pub.
Declared in <openssl/evp.h>
int
EVP_PKEY_get_raw_public_key(
EVP_PKEY const* pkey,
unsigned char* pub,
size_t* len);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| pkey | Key whose public material is exported (algorithm-dependent format). |
| pub | Output buffer, or NULL to only query the required length via len. |
| len | On entry, capacity of pub when non-NULL; on return, number of bytes written or required. |