Install a callback that exports the raw public key encoding from an EVP_PKEY.
Declared in <openssl/evp.h>
void
EVP_PKEY_asn1_set_get_pub_key(
EVP_PKEY_ASN1_METHOD* ameth,
int(* get_pub_key)(EVP_PKEY const*, unsigned char*, size_t*));
| Name | Description |
|---|---|
| ameth | ASN.1 method table to update. |
| get_pub_key | Callback that writes the public key into pub / updates len. |