Read algorithm parameters (e.g. DH/DSA) from PEM into an EVP_PKEY with a library context.

Synopsis

Declared in <openssl/pem.h>

EVP_PKEY*
PEM_read_bio_Parameters_ex(
    BIO* bp,
    EVP_PKEY** x,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

Parameter EVP_PKEY on success, or NULL on failure.

Parameters

Name

Description

bp

BIO to read from.

x

Optional address of an EVP_PKEY pointer to reuse, or NULL.

libctx

Library context used for provider‐backed decoding, or NULL for the default.

propq

Property query for algorithm fetches, or NULL.

Created with MrDocs