EVP_RAND_CTX_new

Create a RAND context for rand, optionally chaining from a parent DRBG.

Synopsis

Declared in <openssl/evp.h>

EVP_RAND_CTX*
EVP_RAND_CTX_new(
    EVP_RAND* rand,
    EVP_RAND_CTX* parent);

Return Value

New EVP_RAND_CTX, or NULL on failure; free with EVP_RAND_CTX_free().

Parameters

NameDescription
randFetched EVP_RAND implementation (reference count is incremented).
parentOptional parent EVP_RAND_CTX used as entropy source, or NULL.