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

Name

Description

libctx

Library context to search, or NULL for the default.

algorithm

Algorithm name such as "CTR‐DRBG" or "HASH‐DRBG".

properties

Property query string, or NULL.

Created with MrDocs