Home
last modified time | relevance | path

Searched refs:EVP_RAND_CTX (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/crypto/openssl/crypto/evp/
H A Devp_rand.c92 int EVP_RAND_enable_locking(EVP_RAND_CTX *rand) in EVP_RAND_enable_locking()
101 static int evp_rand_lock(EVP_RAND_CTX *rand) in evp_rand_lock()
109 static void evp_rand_unlock(EVP_RAND_CTX *rand) in evp_rand_unlock()
323 static int evp_rand_ctx_up_ref(EVP_RAND_CTX *ctx) in evp_rand_ctx_up_ref()
330 EVP_RAND_CTX *EVP_RAND_CTX_new(EVP_RAND *rand, EVP_RAND_CTX *parent) in EVP_RAND_CTX_new()
332 EVP_RAND_CTX *ctx; in EVP_RAND_CTX_new()
373 void EVP_RAND_CTX_free(EVP_RAND_CTX *ctx) in EVP_RAND_CTX_free()
376 EVP_RAND_CTX *parent; in EVP_RAND_CTX_free()
393 EVP_RAND *EVP_RAND_CTX_get0_rand(EVP_RAND_CTX *ctx) in EVP_RAND_CTX_get0_rand()
398 static int evp_rand_get_ctx_params_locked(EVP_RAND_CTX *ctx, in evp_rand_get_ctx_params_locked()
[all …]
H A Devp_local.h89 EVP_RAND_CTX *parent; /* Parent EVP_RAND or NULL if none */
/freebsd/crypto/openssl/test/
H A Ddrbgtest.c48 static int gen_bytes(EVP_RAND_CTX *drbg, unsigned char *buf, int num) in gen_bytes()
82 static int state(EVP_RAND_CTX *drbg) in state()
87 static unsigned int query_rand_uint(EVP_RAND_CTX *drbg, const char *name) in query_rand_uint()
99 static unsigned int name(EVP_RAND_CTX *drbg) \
105 static PROV_DRBG *prov_rand(EVP_RAND_CTX *drbg) in DRBG_UINT()
110 static void set_reseed_counter(EVP_RAND_CTX *drbg, unsigned int n) in set_reseed_counter()
117 static void inc_reseed_counter(EVP_RAND_CTX *drbg) in inc_reseed_counter()
122 static time_t reseed_time(EVP_RAND_CTX *drbg) in reseed_time()
140 EVP_RAND_CTX *primary = RAND_get0_primary(NULL); in using_fips_rng()
160 static int disable_crngt(EVP_RAND_CTX *drbg) in disable_crngt()
[all …]
H A Drand_test.c18 EVP_RAND_CTX *privctx; in test_rand()
H A Dtestutil.h616 const char *name, EVP_RAND_CTX *ctx);
620 void fake_rand_set_callback(EVP_RAND_CTX *ctx,
622 const char *name, EVP_RAND_CTX *ctx));
H A Dsm2_internal_test.c40 ossl_unused EVP_RAND_CTX *ctx) in get_faked_bytes()
H A Decdsatest.c36 EVP_RAND_CTX *ctx) in fbytes()
/freebsd/crypto/openssl/crypto/rand/
H A Drand_lib.c247 EVP_RAND_CTX *drbg; in RAND_seed()
264 EVP_RAND_CTX *drbg; in RAND_add()
298 EVP_RAND_CTX *rand; in RAND_status()
328 EVP_RAND_CTX *rand; in RAND_priv_bytes_ex()
357 EVP_RAND_CTX *rand; in RAND_bytes_ex()
394 EVP_RAND_CTX *seed;
407 EVP_RAND_CTX *primary;
517 EVP_RAND_CTX *rand; in rand_delete_thread_state()
532 static EVP_RAND_CTX *rand_new_seed(OSSL_LIB_CTX *libctx) in rand_new_seed()
536 EVP_RAND_CTX *ctx; in rand_new_seed()
[all …]
H A Drand_meth.c17 EVP_RAND_CTX *drbg = RAND_get0_primary(NULL); in drbg_add()
34 EVP_RAND_CTX *drbg = RAND_get0_primary(NULL); in drbg_status()
45 EVP_RAND_CTX *drbg = RAND_get0_public(NULL); in drbg_bytes()
/freebsd/crypto/openssl/doc/man3/
H A DEVP_RAND.pod5 EVP_RAND, EVP_RAND_fetch, EVP_RAND_free, EVP_RAND_up_ref, EVP_RAND_CTX,
25 typedef struct evp_rand_ctx_st EVP_RAND_CTX;
31 EVP_RAND_CTX *EVP_RAND_CTX_new(EVP_RAND *rand, EVP_RAND_CTX *parent);
32 void EVP_RAND_CTX_free(EVP_RAND_CTX *ctx);
33 EVP_RAND *EVP_RAND_CTX_get0_rand(EVP_RAND_CTX *ctx);
35 int EVP_RAND_CTX_get_params(EVP_RAND_CTX *ctx, OSSL_PARAM params[]);
36 int EVP_RAND_CTX_set_params(EVP_RAND_CTX *ctx, const OSSL_PARAM params[]);
40 const OSSL_PARAM *EVP_RAND_CTX_gettable_params(EVP_RAND_CTX *ctx);
41 const OSSL_PARAM *EVP_RAND_CTX_settable_params(EVP_RAND_CTX *ctx);
53 int EVP_RAND_instantiate(EVP_RAND_CTX *ctx, unsigned int strength,
[all …]
H A DRAND_get0_primary.pod8 - get access to the global EVP_RAND_CTX instances
14 EVP_RAND_CTX *RAND_get0_primary(OSSL_LIB_CTX *ctx);
15 EVP_RAND_CTX *RAND_get0_public(OSSL_LIB_CTX *ctx);
16 EVP_RAND_CTX *RAND_get0_private(OSSL_LIB_CTX *ctx);
/freebsd/crypto/openssl/test/testutil/
H A Dfake_random.c23 EVP_RAND_CTX *ctx;
174 static int check_rng(EVP_RAND_CTX *rng, const char *name) in check_rng()
214 void fake_rand_set_callback(EVP_RAND_CTX *rng, in fake_rand_set_callback()
216 const char *name, EVP_RAND_CTX *ctx)) in fake_rand_set_callback()
226 EVP_RAND_CTX *ctx)) in fake_rand_set_public_private_callbacks()
/freebsd/crypto/openssl/include/openssl/
H A Drand.h82 EVP_RAND_CTX *RAND_get0_primary(OSSL_LIB_CTX *ctx);
83 EVP_RAND_CTX *RAND_get0_public(OSSL_LIB_CTX *ctx);
84 EVP_RAND_CTX *RAND_get0_private(OSSL_LIB_CTX *ctx);
H A Devp.h1252 EVP_RAND_CTX *EVP_RAND_CTX_new(EVP_RAND *rand, EVP_RAND_CTX *parent);
1253 void EVP_RAND_CTX_free(EVP_RAND_CTX *ctx);
1254 EVP_RAND *EVP_RAND_CTX_get0_rand(EVP_RAND_CTX *ctx);
1255 int EVP_RAND_CTX_get_params(EVP_RAND_CTX *ctx, OSSL_PARAM params[]);
1256 int EVP_RAND_CTX_set_params(EVP_RAND_CTX *ctx, const OSSL_PARAM params[]);
1260 const OSSL_PARAM *EVP_RAND_CTX_gettable_params(EVP_RAND_CTX *ctx);
1261 const OSSL_PARAM *EVP_RAND_CTX_settable_params(EVP_RAND_CTX *ctx);
1270 __owur int EVP_RAND_instantiate(EVP_RAND_CTX *ctx, unsigned int strength,
1274 int EVP_RAND_uninstantiate(EVP_RAND_CTX *ctx);
1275 __owur int EVP_RAND_generate(EVP_RAND_CTX *ctx, unsigned char *out,
[all …]
H A Dtypes.h120 typedef struct evp_rand_ctx_st EVP_RAND_CTX; typedef
/freebsd/crypto/openssl/doc/man7/
H A DEVP_RAND-SEED-SRC.pod42 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
47 EVP_RAND_CTX *seed, *rctx;
H A DEVP_RAND-HASH-DRBG.pod60 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
65 EVP_RAND_CTX *rctx;
H A DEVP_RAND-HMAC-DRBG.pod62 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
67 EVP_RAND_CTX *rctx;
H A DEVP_RAND-CTR-DRBG.pod66 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
71 EVP_RAND_CTX *rctx;
H A DEVP_RAND-TEST-RAND.pod70 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
75 EVP_RAND_CTX *rctx;
H A DEVP_RAND.pod70 a pointer to the parent EVP_RAND_CTX as argument to the EVP_RAND_CTX_new() call.
72 It is also possible to use any EVP_RAND_CTX class as the parent, however, only
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_sp800_56b_gen.c194 static int rsa_validate_rng_strength(EVP_RAND_CTX *rng, int nbits) in rsa_validate_rng_strength()
/freebsd/crypto/openssl/providers/fips/
H A Dself_test_kats.c256 EVP_RAND_CTX *test = NULL, *drbg = NULL; in self_test_drbg()
/freebsd/crypto/openssl/util/
H A Dother.syms53 EVP_RAND_CTX datatype
/freebsd/crypto/openssl/apps/
H A Dlist.c429 static void display_random(const char *name, EVP_RAND_CTX *drbg) in display_random()

12