EVP_CIPHER_fetch

Fetch a cipher implementation from providers in a library context.

Synopsis

Declared in <openssl/evp.h>

EVP_CIPHER*
EVP_CIPHER_fetch(
    OSSL_LIB_CTX* ctx,
    char const* algorithm,
    char const* properties);

Return Value

Fetched EVP_CIPHER (free with EVP_CIPHER_free()), or NULL on failure.

Parameters

NameDescription
ctxLibrary context to search, or NULL for the default.
algorithmCipher algorithm name.
propertiesOptional property query string, or NULL.