EVP_RAND_CTX
static void display_random(const char *name, EVP_RAND_CTX *drbg)
EVP_RAND_CTX *parent; /* Parent EVP_RAND or NULL if none */
static int evp_rand_lock(EVP_RAND_CTX *rand)
static void evp_rand_unlock(EVP_RAND_CTX *rand)
int EVP_RAND_CTX_up_ref(EVP_RAND_CTX *ctx)
EVP_RAND_CTX *EVP_RAND_CTX_new(EVP_RAND *rand, EVP_RAND_CTX *parent)
EVP_RAND_CTX *ctx;
void EVP_RAND_CTX_free(EVP_RAND_CTX *ctx)
EVP_RAND_CTX *parent;
EVP_RAND *EVP_RAND_CTX_get0_rand(EVP_RAND_CTX *ctx)
static int evp_rand_get_ctx_params_locked(EVP_RAND_CTX *ctx,
int EVP_RAND_CTX_get_params(EVP_RAND_CTX *ctx, OSSL_PARAM params[])
static int evp_rand_set_ctx_params_locked(EVP_RAND_CTX *ctx,
int EVP_RAND_CTX_set_params(EVP_RAND_CTX *ctx, const OSSL_PARAM params[])
const OSSL_PARAM *EVP_RAND_CTX_gettable_params(EVP_RAND_CTX *ctx)
const OSSL_PARAM *EVP_RAND_CTX_settable_params(EVP_RAND_CTX *ctx)
static int evp_rand_instantiate_locked(EVP_RAND_CTX *ctx, unsigned int strength, int prediction_resistance,
int EVP_RAND_instantiate(EVP_RAND_CTX *ctx, unsigned int strength,
static int evp_rand_uninstantiate_locked(EVP_RAND_CTX *ctx)
int EVP_RAND_uninstantiate(EVP_RAND_CTX *ctx)
static int evp_rand_generate_locked(EVP_RAND_CTX *ctx, unsigned char *out,
int EVP_RAND_generate(EVP_RAND_CTX *ctx, unsigned char *out, size_t outlen,
static int evp_rand_reseed_locked(EVP_RAND_CTX *ctx, int prediction_resistance,
int EVP_RAND_reseed(EVP_RAND_CTX *ctx, int prediction_resistance,
static unsigned int evp_rand_strength_locked(EVP_RAND_CTX *ctx)
unsigned int EVP_RAND_get_strength(EVP_RAND_CTX *ctx)
static int evp_rand_nonce_locked(EVP_RAND_CTX *ctx, unsigned char *out,
int EVP_RAND_nonce(EVP_RAND_CTX *ctx, unsigned char *out, size_t outlen)
int EVP_RAND_get_state(EVP_RAND_CTX *ctx)
static int evp_rand_verify_zeroization_locked(EVP_RAND_CTX *ctx)
int EVP_RAND_verify_zeroization(EVP_RAND_CTX *ctx)
int evp_rand_can_seed(EVP_RAND_CTX *ctx)
static size_t evp_rand_get_seed_locked(EVP_RAND_CTX *ctx,
size_t evp_rand_get_seed(EVP_RAND_CTX *ctx,
static void evp_rand_clear_seed_locked(EVP_RAND_CTX *ctx,
void evp_rand_clear_seed(EVP_RAND_CTX *ctx,
int EVP_RAND_enable_locking(EVP_RAND_CTX *rand)
EVP_RAND_CTX *rng = ossl_rand_get0_seed_noncreating(ctx);
EVP_RAND_CTX *rng = ossl_rand_get0_seed_noncreating(ctx);
EVP_RAND_CTX *rng = ossl_rand_get0_seed_noncreating(ctx);
EVP_RAND_CTX *drbg;
EVP_RAND_CTX *drbg;
EVP_RAND_CTX *rand;
EVP_RAND_CTX *seed;
EVP_RAND_CTX *rand;
EVP_RAND_CTX *rand;
EVP_RAND_CTX *primary;
EVP_RAND_CTX *rand;
static EVP_RAND_CTX *rand_new_seed(OSSL_LIB_CTX *libctx)
EVP_RAND_CTX *ctx = NULL;
EVP_RAND_CTX *ossl_rand_get0_seed_noncreating(OSSL_LIB_CTX *ctx)
EVP_RAND_CTX *ret;
static EVP_RAND_CTX *rand_new_drbg(OSSL_LIB_CTX *libctx, EVP_RAND_CTX *parent,
EVP_RAND_CTX *ctx;
static EVP_RAND_CTX *rand_new_crngt(OSSL_LIB_CTX *libctx, EVP_RAND_CTX *parent)
EVP_RAND_CTX *ctx;
static EVP_RAND_CTX *rand_get0_primary(OSSL_LIB_CTX *ctx, RAND_GLOBAL *dgbl)
EVP_RAND_CTX *ret, *seed, *newseed = NULL, *primary;
EVP_RAND_CTX *RAND_get0_primary(OSSL_LIB_CTX *ctx)
static EVP_RAND_CTX *rand_get0_public(OSSL_LIB_CTX *ctx, RAND_GLOBAL *dgbl)
EVP_RAND_CTX *rand, *primary;
EVP_RAND_CTX *RAND_get0_public(OSSL_LIB_CTX *ctx)
static EVP_RAND_CTX *rand_get0_private(OSSL_LIB_CTX *ctx, RAND_GLOBAL *dgbl)
EVP_RAND_CTX *rand, *primary;
EVP_RAND_CTX *RAND_get0_private(OSSL_LIB_CTX *ctx)
EVP_RAND_CTX *ossl_rand_get0_private_noncreating(OSSL_LIB_CTX *ctx)
int RAND_set0_public(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand)
EVP_RAND_CTX *old;
int RAND_set0_private(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand)
EVP_RAND_CTX *old;
static EVP_RAND_CTX *rand_get0_primary(OSSL_LIB_CTX *ctx, RAND_GLOBAL *dgbl);
static EVP_RAND_CTX *rand_get0_public(OSSL_LIB_CTX *ctx, RAND_GLOBAL *dgbl);
static EVP_RAND_CTX *rand_get0_private(OSSL_LIB_CTX *ctx, RAND_GLOBAL *dgbl);
EVP_RAND_CTX *drbg = RAND_get0_primary(NULL);
EVP_RAND_CTX *drbg = RAND_get0_primary(NULL);
EVP_RAND_CTX *drbg = RAND_get0_public(NULL);
static int rsa_validate_rng_strength(EVP_RAND_CTX *rng, int nbits)
EVP_RAND_CTX *ctx = NULL;
int evp_rand_can_seed(EVP_RAND_CTX *ctx);
size_t evp_rand_get_seed(EVP_RAND_CTX *ctx,
void evp_rand_clear_seed(EVP_RAND_CTX *ctx,
EVP_RAND_CTX *ossl_rand_get0_private_noncreating(OSSL_LIB_CTX *ctx);
EVP_RAND_CTX *ossl_rand_get0_seed_noncreating(OSSL_LIB_CTX *ctx);
EVP_RAND_CTX *EVP_RAND_CTX_new(EVP_RAND *rand, EVP_RAND_CTX *parent);
int EVP_RAND_CTX_up_ref(EVP_RAND_CTX *ctx);
void EVP_RAND_CTX_free(EVP_RAND_CTX *ctx);
EVP_RAND *EVP_RAND_CTX_get0_rand(EVP_RAND_CTX *ctx);
int EVP_RAND_CTX_get_params(EVP_RAND_CTX *ctx, OSSL_PARAM params[]);
int EVP_RAND_CTX_set_params(EVP_RAND_CTX *ctx, const OSSL_PARAM params[]);
const OSSL_PARAM *EVP_RAND_CTX_gettable_params(EVP_RAND_CTX *ctx);
const OSSL_PARAM *EVP_RAND_CTX_settable_params(EVP_RAND_CTX *ctx);
__owur int EVP_RAND_instantiate(EVP_RAND_CTX *ctx, unsigned int strength,
int EVP_RAND_uninstantiate(EVP_RAND_CTX *ctx);
__owur int EVP_RAND_generate(EVP_RAND_CTX *ctx, unsigned char *out,
int EVP_RAND_reseed(EVP_RAND_CTX *ctx, int prediction_resistance,
__owur int EVP_RAND_nonce(EVP_RAND_CTX *ctx, unsigned char *out, size_t outlen);
__owur int EVP_RAND_enable_locking(EVP_RAND_CTX *ctx);
int EVP_RAND_verify_zeroization(EVP_RAND_CTX *ctx);
unsigned int EVP_RAND_get_strength(EVP_RAND_CTX *ctx);
int EVP_RAND_get_state(EVP_RAND_CTX *ctx);
EVP_RAND_CTX *RAND_get0_primary(OSSL_LIB_CTX *ctx);
EVP_RAND_CTX *RAND_get0_public(OSSL_LIB_CTX *ctx);
EVP_RAND_CTX *RAND_get0_private(OSSL_LIB_CTX *ctx);
int RAND_set0_public(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
int RAND_set0_private(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
EVP_RAND_CTX *rng;
static EVP_RAND_CTX *kat_rand = NULL;
static EVP_RAND_CTX *main_rand = NULL;
EVP_RAND_CTX *parent_rand = NULL;
EVP_RAND_CTX *saved_rand = ossl_rand_get0_private_noncreating(libctx);
EVP_RAND_CTX *test = NULL, *drbg = NULL;
EVP_RAND_CTX *ctx = NULL, *parent = NULL;
static void set_reseed_counter(EVP_RAND_CTX *drbg, unsigned int n)
static void inc_reseed_counter(EVP_RAND_CTX *drbg)
static time_t reseed_time(EVP_RAND_CTX *drbg)
EVP_RAND_CTX *primary = RAND_get0_primary(NULL);
static int disable_crngt(EVP_RAND_CTX *drbg)
EVP_RAND_CTX *primary,
EVP_RAND_CTX *public,
EVP_RAND_CTX *private,
static int test_drbg_reseed_in_child(EVP_RAND_CTX *primary,
EVP_RAND_CTX *public,
EVP_RAND_CTX *private,
static int test_rand_reseed_on_fork(EVP_RAND_CTX *primary,
EVP_RAND_CTX *public,
EVP_RAND_CTX *private)
static int gen_bytes(EVP_RAND_CTX *drbg, unsigned char *buf, int num)
EVP_RAND_CTX *primary, *public, *private;
EVP_RAND_CTX *primary, *public, *private;
static int set_reseed_time_interval(EVP_RAND_CTX *drbg, int t)
EVP_RAND_CTX *public = NULL, *private = NULL;
static int state(EVP_RAND_CTX *drbg)
static EVP_RAND_CTX *new_drbg(EVP_RAND_CTX *parent)
EVP_RAND_CTX *drbg = NULL;
static unsigned int query_rand_uint(EVP_RAND_CTX *drbg, const char *name)
EVP_RAND_CTX *x = NULL, *y = NULL, *z = NULL;
static unsigned int name(EVP_RAND_CTX *drbg) \
static PROV_DRBG *prov_rand(EVP_RAND_CTX *drbg)
EVP_RAND_CTX *ctx)
EVP_RAND_CTX *ctx;
static int rand_check_fips_approved(EVP_RAND_CTX *ctx, EVP_TEST *t)
EVP_RAND_CTX *ctx;
EVP_RAND_CTX *parent;
EVP_RAND_CTX *privctx;
EVP_RAND_CTX *pubctx;
EVP_RAND_CTX *privctx;
EVP_RAND_CTX *pubctx;
EVP_RAND_CTX *crngt = NULL, *parent = NULL;
EVP_RAND_CTX *privctx;
ossl_unused EVP_RAND_CTX *ctx)
const char *name, EVP_RAND_CTX *ctx);
void fake_rand_set_callback(EVP_RAND_CTX *ctx,
const char *name, EVP_RAND_CTX *ctx));
static int check_rng(EVP_RAND_CTX *rng, const char *name)
void fake_rand_set_callback(EVP_RAND_CTX *rng,
const char *name, EVP_RAND_CTX *ctx))
EVP_RAND_CTX *ctx))
EVP_RAND_CTX *ctx;