[#EVP_PKEY_asn1_set_public] = EVP_PKEY_asn1_set_public :mrdocs: Install public‐key decode, encode, compare, print, size, and bits callbacks on an ASN.1 method. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void EVP_PKEY_asn1_set_public( xref:EVP_PKEY_ASN1_METHOD.adoc[EVP_PKEY_ASN1_METHOD]* ameth, int(* pub_decode)(xref:EVP_PKEY.adoc[EVP_PKEY]*, xref:X509_PUBKEY.adoc[X509_PUBKEY] const*), int(* pub_encode)(xref:X509_PUBKEY.adoc[X509_PUBKEY]*, xref:EVP_PKEY.adoc[EVP_PKEY] const*), int(* pub_cmp)(xref:EVP_PKEY.adoc[EVP_PKEY] const*, xref:EVP_PKEY.adoc[EVP_PKEY] const*), int(* pub_print)(xref:BIO.adoc[BIO]*, xref:EVP_PKEY.adoc[EVP_PKEY] const*, int, xref:ASN1_PCTX.adoc[ASN1_PCTX]*), int(* pkey_size)(xref:EVP_PKEY.adoc[EVP_PKEY] const*), int(* pkey_bits)(xref:EVP_PKEY.adoc[EVP_PKEY] const*)); ---- == Parameters [cols="1,4"] |=== | Name| Description | *ameth* | ASN.1 method being customized. | *pub_decode* | Decode an X509_PUBKEY into `pk.` | *pub_encode* | Encode `pk` into an X509_PUBKEY. | *pub_cmp* | Compare two public keys (1 match, 0 differ, negative on error). | *pub_print* | Print the public key to a BIO. | *pkey_size* | Return the maximum output size in bytes for operations with `pk.` | *pkey_bits* | Return the key size in bits for `pk.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#