Set the public key on pkey from an encoded public-key octet string.
Declared in <openssl/evp.h>
int
EVP_PKEY_set1_encoded_public_key(
EVP_PKEY* pkey,
unsigned char const* pub,
size_t publen);
1 on success, or 0 on failure.
| 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. |