EVP_RAND_fetch

Fetch a random-number generator implementation from providers.

Synopsis

Declared in <openssl/evp.h>

EVP_RAND*
EVP_RAND_fetch(
    OSSL_LIB_CTX* libctx,
    char const* algorithm,
    char const* properties);

Return Value

Fetched EVP_RAND, or NULL on error; free with EVP_RAND_free.

Parameters

NameDescription
libctxLibrary context to search, or NULL for the default.
algorithmAlgorithm name such as "CTR-DRBG" or "HASH-DRBG".
propertiesProperty query string, or NULL.