Create a decoder context preconfigured to decode an EVP_PKEY.

Synopsis

Declared in <openssl/decoder.h>

OSSL_DECODER_CTX*
OSSL_DECODER_CTX_new_for_pkey(
    EVP_PKEY** pkey,
    char const* input_type,
    char const* input_struct,
    char const* keytype,
    int selection,
    OSSL_LIB_CTX* libctx,
    char const* propquery);

Return Value

New decoder context, or NULL on error; free with OSSL_DECODER_CTX_free().

Parameters

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.

Created with MrDocs