[#OSSL_DECODER_CTX_new_for_pkey] = OSSL_DECODER_CTX_new_for_pkey :mrdocs: Create a decoder context preconfigured to decode an EVP_PKEY. == Synopsis Declared in `<openssl/decoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:OSSL_DECODER_CTX.adoc[OSSL_DECODER_CTX]* OSSL_DECODER_CTX_new_for_pkey( xref:EVP_PKEY.adoc[EVP_PKEY]** pkey, char const* input_type, char const* input_struct, char const* keytype, int selection, xref:OSSL_LIB_CTX.adoc[OSSL_LIB_CTX]* libctx, char const* propquery); ---- == Return Value New decoder context, or NULL on error; free with OSSL_DECODER_CTX_free(). == Parameters [cols="1,4"] |=== | Name| Description | *pkey* | Address of a pointer set to the decoded key on success. | *input_type* | Expected encoding type (for example "DER"), or NULL. | *input_struct* | Expected ASN.1 structure name, or NULL. | *keytype* | Target key type name (for example "RSA"), or NULL. | *selection* | OSSL_KEYMGMT_SELECT_* mask for components to decode. | *libctx* | Library context, or NULL for the default. | *propquery* | Optional property query for decoder fetching, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#