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

Name

Description

rand

Fetched EVP_RAND implementation (reference count is incremented).

parent

Optional parent EVP_RAND_CTX used as entropy source, or NULL.

Created with MrDocs