[#EVP_PKEY_asn1_set_get_pub_key]
= EVP&lowbar;PKEY&lowbar;asn1&lowbar;set&lowbar;get&lowbar;pub&lowbar;key
:mrdocs:

Install a callback that exports the raw public key encoding from an EVP&lowbar;PKEY&period;

== Synopsis

Declared in `&lt;openssl&sol;evp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
EVP&lowbar;PKEY&lowbar;asn1&lowbar;set&lowbar;get&lowbar;pub&lowbar;key(
    xref:EVP_PKEY_ASN1_METHOD.adoc[EVP&lowbar;PKEY&lowbar;ASN1&lowbar;METHOD]* ameth,
    int(* get&lowbar;pub&lowbar;key)(xref:EVP_PKEY.adoc[EVP&lowbar;PKEY] const*, unsigned char*, size&lowbar;t*));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ameth*
| ASN&period;1 method table to update&period;
| *get&lowbar;pub&lowbar;key*
| Callback that writes the public key into `pub` &sol; updates `len&period;`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
