/freebsd/crypto/openssl/providers/implementations/rands/ |
H A D | drbg.c | 63 static int ossl_drbg_lock_parent(PROV_DRBG *drbg) in ossl_drbg_lock_parent() 76 static void ossl_drbg_unlock_parent(PROV_DRBG *drbg) in ossl_drbg_unlock_parent() 84 static int get_parent_strength(PROV_DRBG *drbg, unsigned int *str) in get_parent_strength() 109 static unsigned int get_parent_reseed_count(PROV_DRBG *drbg) in get_parent_reseed_count() 149 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in ossl_drbg_get_seed() local 192 static size_t get_entropy(PROV_DRBG *drbg, unsigned char **pout, int entropy, in get_entropy() 246 static void cleanup_entropy(PROV_DRBG *drbg, unsigned char *out, size_t outlen) in cleanup_entropy() 300 static size_t prov_drbg_get_nonce(PROV_DRBG *drbg, unsigned char **pout, in prov_drbg_get_nonce() 309 void *drbg; in prov_drbg_get_nonce() member 349 int ossl_prov_drbg_instantiate(PROV_DRBG *drbg, unsigned int strength, in ossl_prov_drbg_instantiate() [all …]
|
H A D | drbg_hash.c | 72 static int hash_df(PROV_DRBG *drbg, unsigned char *out, in hash_df() 136 static int hash_df1(PROV_DRBG *drbg, unsigned char *out, in hash_df1() 149 static int add_bytes(PROV_DRBG *drbg, unsigned char *dst, in add_bytes() 180 static int add_hash_to_v(PROV_DRBG *drbg, unsigned char inbyte, in add_hash_to_v() 212 static int hash_gen(PROV_DRBG *drbg, unsigned char *out, size_t outlen) in hash_gen() 253 static int drbg_hash_instantiate(PROV_DRBG *drbg, in drbg_hash_instantiate() 277 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hash_instantiate_wrapper() local 302 static int drbg_hash_reseed(PROV_DRBG *drbg, in drbg_hash_reseed() 322 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hash_reseed_wrapper() local 337 static int drbg_hash_generate(PROV_DRBG *drbg, in drbg_hash_generate() [all …]
|
H A D | drbg_hmac.c | 135 static int drbg_hmac_instantiate(PROV_DRBG *drbg, in drbg_hmac_instantiate() 150 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hmac_instantiate_wrapper() local 178 static int drbg_hmac_reseed(PROV_DRBG *drbg, in drbg_hmac_reseed() 192 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hmac_reseed_wrapper() local 252 static int drbg_hmac_generate(PROV_DRBG *drbg, in drbg_hmac_generate() 264 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hmac_generate_wrapper() local 270 static int drbg_hmac_uninstantiate(PROV_DRBG *drbg) in drbg_hmac_uninstantiate() 281 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hmac_uninstantiate_wrapper() local 297 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hmac_verify_zeroization() local 314 static int drbg_hmac_new(PROV_DRBG *drbg) in drbg_hmac_new() [all …]
|
H A D | drbg_ctr.c | 267 __owur static int ctr_update(PROV_DRBG *drbg, in ctr_update() 313 static int drbg_ctr_instantiate(PROV_DRBG *drbg, in drbg_ctr_instantiate() 340 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_ctr_instantiate_wrapper() local 357 static int drbg_ctr_reseed(PROV_DRBG *drbg, in drbg_ctr_reseed() 376 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_ctr_reseed_wrapper() local 394 static int drbg_ctr_generate(PROV_DRBG *drbg, in drbg_ctr_generate() 473 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_ctr_generate_wrapper() local 479 static int drbg_ctr_uninstantiate(PROV_DRBG *drbg) in drbg_ctr_uninstantiate() 493 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_ctr_uninstantiate_wrapper() local 509 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_ctr_verify_zeroization() local [all …]
|
/freebsd/crypto/openssl/crypto/rand/ |
H A D | rand_meth.c | 17 EVP_RAND_CTX *drbg = RAND_get0_primary(NULL); in drbg_add() local 34 EVP_RAND_CTX *drbg = RAND_get0_primary(NULL); in drbg_status() local 45 EVP_RAND_CTX *drbg = RAND_get0_public(NULL); in drbg_bytes() local
|
H A D | rand_lib.c | 358 EVP_RAND_CTX *drbg; in RAND_seed() local 375 EVP_RAND_CTX *drbg; in RAND_add() local 1065 int RAND_set_DRBG_type(OSSL_LIB_CTX *ctx, const char *drbg, const char *propq, in RAND_set_DRBG_type()
|
/freebsd/crypto/openssl/test/ |
H A D | drbgtest.c | 42 static int gen_bytes(EVP_RAND_CTX *drbg, unsigned char *buf, int num) in gen_bytes() 76 static int state(EVP_RAND_CTX *drbg) in state() 81 static unsigned int query_rand_uint(EVP_RAND_CTX *drbg, const char *name) in query_rand_uint() 104 static void set_reseed_counter(EVP_RAND_CTX *drbg, unsigned int n) in set_reseed_counter() 111 static void inc_reseed_counter(EVP_RAND_CTX *drbg) in inc_reseed_counter() 116 static time_t reseed_time(EVP_RAND_CTX *drbg) in reseed_time() 154 static int disable_crngt(EVP_RAND_CTX *drbg) in disable_crngt() 670 static int set_reseed_time_interval(EVP_RAND_CTX *drbg, int t) in set_reseed_time_interval() 786 EVP_RAND_CTX *drbg = NULL; in new_drbg() local
|
/freebsd/crypto/openssl/providers/implementations/kdfs/ |
H A D | hmacdrbg_kdf.c | 59 PROV_DRBG_HMAC *drbg = &ctx->base; in hmac_drbg_kdf_reset() local 120 PROV_DRBG_HMAC *drbg = &ctx->base; in hmac_drbg_kdf_derive() local 142 PROV_DRBG_HMAC *drbg = &hmac->base; in hmac_drbg_kdf_get_ctx_params() local 180 PROV_DRBG_HMAC *drbg = &hmac->base; in hmac_drbg_kdf_set_ctx_params() local
|
/freebsd/contrib/bearssl/src/ec/ |
H A D | ecdsa_i15_sign_raw.c | 52 br_hmac_drbg_context drbg; in br_ecdsa_i15_sign_raw() local
|
H A D | ecdsa_i31_sign_raw.c | 51 br_hmac_drbg_context drbg; in br_ecdsa_i31_sign_raw() local
|
/freebsd/crypto/openssl/crypto/ |
H A D | context.c | 32 void *drbg; member
|
/freebsd/crypto/openssl/providers/fips/ |
H A D | self_test_kats.c | 295 EVP_RAND_CTX *test = NULL, *drbg = NULL; in self_test_drbg() local
|
/freebsd/crypto/openssl/apps/ |
H A D | list.c | 439 static void display_random(const char *name, EVP_RAND_CTX *drbg) in display_random()
|