EVP_ASYM_CIPHER_fetch

Fetch an asymmetric cipher (encrypt/decrypt) algorithm from providers.

Synopsis

Declared in <openssl/evp.h>

EVP_ASYM_CIPHER*
EVP_ASYM_CIPHER_fetch(
    OSSL_LIB_CTX* ctx,
    char const* algorithm,
    char const* properties);

Return Value

Fetched EVP_ASYM_CIPHER (free with EVP_ASYM_CIPHER_free()), or NULL on failure.

Parameters

NameDescription
ctxLibrary context to search, or NULL for the default.
algorithmAlgorithm name (for example "RSA").
propertiesOptional property query string, or NULL.