Reseed a DRBG/RAND context with optional entropy and additional input.
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);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| ctx | RAND context to reseed. |
| prediction_resistance | Nonzero to request prediction resistance when supported. |
| ent | Optional entropy bytes, or NULL to let the implementation gather entropy. |
| ent_len | Length of ent. |
| addin | Optional additional input bytes, or NULL. |
| addin_len | Length of addin. |