Home
last modified time | relevance | path

Searched refs:PROV_DRBG (Results 1 – 7 of 7) sorted by relevance

/third_party/openssl/providers/implementations/rands/
Ddrbg_local.h61 typedef struct prov_drbg_st PROV_DRBG; typedef
78 int (*instantiate)(PROV_DRBG *drbg,
82 int (*uninstantiate)(PROV_DRBG *ctx);
83 int (*reseed)(PROV_DRBG *drbg, const unsigned char *ent, size_t ent_len,
85 int (*generate)(PROV_DRBG *, unsigned char *out, size_t outlen,
181 PROV_DRBG *ossl_rand_drbg_new
183 int (*dnew)(PROV_DRBG *ctx),
184 int (*instantiate)(PROV_DRBG *drbg,
188 int (*uninstantiate)(PROV_DRBG *ctx),
189 int (*reseed)(PROV_DRBG *drbg, const unsigned char *ent, size_t ent_len,
[all …]
Ddrbg_hmac.c94 static int drbg_hmac_update(PROV_DRBG *drbg, in drbg_hmac_update()
122 static int drbg_hmac_instantiate(PROV_DRBG *drbg, in drbg_hmac_instantiate()
149 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hmac_instantiate_wrapper()
167 static int drbg_hmac_reseed(PROV_DRBG *drbg, in drbg_hmac_reseed()
179 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hmac_reseed_wrapper()
194 static int drbg_hmac_generate(PROV_DRBG *drbg, in drbg_hmac_generate()
244 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hmac_generate_wrapper()
250 static int drbg_hmac_uninstantiate(PROV_DRBG *drbg) in drbg_hmac_uninstantiate()
261 return drbg_hmac_uninstantiate((PROV_DRBG *)vdrbg); in drbg_hmac_uninstantiate_wrapper()
266 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hmac_verify_zeroization()
[all …]
Ddrbg_hash.c67 static int hash_df(PROV_DRBG *drbg, unsigned char *out, in hash_df()
131 static int hash_df1(PROV_DRBG *drbg, unsigned char *out, in hash_df1()
144 static int add_bytes(PROV_DRBG *drbg, unsigned char *dst, in add_bytes()
175 static int add_hash_to_v(PROV_DRBG *drbg, unsigned char inbyte, in add_hash_to_v()
207 static int hash_gen(PROV_DRBG *drbg, unsigned char *out, size_t outlen) in hash_gen()
248 static int drbg_hash_instantiate(PROV_DRBG *drbg, in drbg_hash_instantiate()
272 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hash_instantiate_wrapper()
288 static int drbg_hash_reseed(PROV_DRBG *drbg, in drbg_hash_reseed()
308 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_hash_reseed_wrapper()
323 static int drbg_hash_generate(PROV_DRBG *drbg, in drbg_hash_generate()
[all …]
Ddrbg.c44 static int rand_drbg_restart(PROV_DRBG *drbg);
48 PROV_DRBG *drbg = vctx; in ossl_drbg_lock()
57 PROV_DRBG *drbg = vctx; in ossl_drbg_unlock()
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()
194 static size_t get_entropy(PROV_DRBG *drbg, unsigned char **pout, int entropy, in get_entropy()
248 static void cleanup_entropy(PROV_DRBG *drbg, unsigned char *out, size_t outlen) in cleanup_entropy()
[all …]
Ddrbg_ctr.c259 __owur static int ctr_update(PROV_DRBG *drbg, in ctr_update()
305 static int drbg_ctr_instantiate(PROV_DRBG *drbg, in drbg_ctr_instantiate()
332 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_ctr_instantiate_wrapper()
340 static int drbg_ctr_reseed(PROV_DRBG *drbg, in drbg_ctr_reseed()
359 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_ctr_reseed_wrapper()
377 static int drbg_ctr_generate(PROV_DRBG *drbg, in drbg_ctr_generate()
456 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_ctr_generate_wrapper()
462 static int drbg_ctr_uninstantiate(PROV_DRBG *drbg) in drbg_ctr_uninstantiate()
476 return drbg_ctr_uninstantiate((PROV_DRBG *)vdrbg); in drbg_ctr_uninstantiate_wrapper()
481 PROV_DRBG *drbg = (PROV_DRBG *)vdrbg; in drbg_ctr_verify_zeroization()
[all …]
Dcrngt.c102 size_t ossl_crngt_get_entropy(PROV_DRBG *drbg, in ossl_crngt_get_entropy()
194 void ossl_crngt_cleanup_entropy(ossl_unused PROV_DRBG *drbg, in ossl_crngt_cleanup_entropy()
/third_party/openssl/test/
Ddrbgtest.c105 static PROV_DRBG *prov_rand(EVP_RAND_CTX *drbg) in DRBG_UINT()
107 return (PROV_DRBG *)drbg->algctx; in DRBG_UINT()
112 PROV_DRBG *p = prov_rand(drbg); in set_reseed_counter()