EVP_RAND_reseed

Reseed a DRBG/RAND context with optional entropy and additional input.

Synopsis

Declared in <openssl/evp.h>

int
EVP_RAND_reseed(
    EVP_RAND_CTX* ctx,
    int prediction_resistance,
    unsigned char const* ent,
    size_t ent_len,
    unsigned char const* addin,
    size_t addin_len);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxRAND context to reseed.
prediction_resistanceNonzero to request prediction resistance when supported.
entOptional entropy bytes, or NULL to let the implementation gather entropy.
ent_lenLength of ent.
addinOptional additional input bytes, or NULL.
addin_lenLength of addin.