Home
last modified time | relevance | path

Searched refs:drbg (Results 1 – 5 of 5) sorted by relevance

/linux/crypto/
H A Ddrbg.c100 #include <crypto/drbg.h>
186 static int drbg_uninstantiate(struct drbg_state *drbg);
223 * drbg->drbg_mutex must have been taken.
225 * @drbg DRBG handle
232 static bool drbg_fips_continuous_test(struct drbg_state *drbg,
234 __must_hold(&drbg->drbg_mutex) in drbg_fips_continuous_test()
236 unsigned short entropylen = drbg_sec_strength(drbg->core->flags); in drbg_fips_continuous_test()
242 if (list_empty(&drbg->test_data.list)) in drbg_fips_continuous_test()
248 if (!drbg->fips_primed) { in drbg_fips_continuous_test()
250 memcpy(drbg in drbg_fips_continuous_test()
233 drbg_fips_continuous_test(struct drbg_state * drbg,const unsigned char * entropy) drbg_fips_continuous_test() argument
285 drbg_ctr_df(struct drbg_state * drbg,unsigned char * df_data,size_t bytes_to_return,struct list_head * seedlist) drbg_ctr_df() argument
308 drbg_ctr_update(struct drbg_state * drbg,struct list_head * seed,int reseed) drbg_ctr_update() argument
371 drbg_ctr_generate(struct drbg_state * drbg,unsigned char * buf,unsigned int buflen,struct list_head * addtl) drbg_ctr_generate() argument
429 drbg_hmac_update(struct drbg_state * drbg,struct list_head * seed,int reseed) drbg_hmac_update() argument
481 drbg_hmac_generate(struct drbg_state * drbg,unsigned char * buf,unsigned int buflen,struct list_head * addtl) drbg_hmac_generate() argument
594 drbg_hash_df(struct drbg_state * drbg,unsigned char * outval,size_t outlen,struct list_head * entropylist) drbg_hash_df() argument
633 drbg_hash_update(struct drbg_state * drbg,struct list_head * seed,int reseed) drbg_hash_update() argument
676 drbg_hash_process_addtl(struct drbg_state * drbg,struct list_head * addtl) drbg_hash_process_addtl() argument
708 drbg_hash_hashgen(struct drbg_state * drbg,unsigned char * buf,unsigned int buflen) drbg_hash_hashgen() argument
749 drbg_hash_generate(struct drbg_state * drbg,unsigned char * buf,unsigned int buflen,struct list_head * addtl) drbg_hash_generate() argument
811 __drbg_seed(struct drbg_state * drbg,struct list_head * seed,int reseed,enum drbg_seed_state new_seed_state) __drbg_seed() argument
848 drbg_get_random_bytes(struct drbg_state * drbg,unsigned char * entropy,unsigned int entropylen) drbg_get_random_bytes() argument
864 drbg_seed_from_random(struct drbg_state * drbg) drbg_seed_from_random() argument
889 drbg_nopr_reseed_interval_elapsed(struct drbg_state * drbg) drbg_nopr_reseed_interval_elapsed() argument
920 drbg_seed(struct drbg_state * drbg,struct drbg_string * pers,bool reseed) drbg_seed() argument
1027 drbg_dealloc_state(struct drbg_state * drbg) drbg_dealloc_state() argument
1053 drbg_alloc_state(struct drbg_state * drbg) drbg_alloc_state() argument
1153 drbg_generate(struct drbg_state * drbg,unsigned char * buf,unsigned int buflen,struct drbg_string * addtl) drbg_generate() argument
1287 drbg_generate_long(struct drbg_state * drbg,unsigned char * buf,unsigned int buflen,struct drbg_string * addtl) drbg_generate_long() argument
1308 drbg_prepare_hrng(struct drbg_state * drbg) drbg_prepare_hrng() argument
1344 drbg_instantiate(struct drbg_state * drbg,struct drbg_string * pers,int coreref,bool pr) drbg_instantiate() argument
1409 drbg_uninstantiate(struct drbg_state * drbg) drbg_uninstantiate() argument
1432 struct drbg_state *drbg = crypto_rng_ctx(tfm); drbg_kcapi_set_entropy() local
1448 drbg_init_hash_kernel(struct drbg_state * drbg) drbg_init_hash_kernel() argument
1473 drbg_fini_hash_kernel(struct drbg_state * drbg) drbg_fini_hash_kernel() argument
1484 drbg_kcapi_hmacsetkey(struct drbg_state * drbg,const unsigned char * key) drbg_kcapi_hmacsetkey() argument
1492 drbg_kcapi_hash(struct drbg_state * drbg,unsigned char * outval,const struct list_head * in) drbg_kcapi_hash() argument
1506 drbg_fini_sym_kernel(struct drbg_state * drbg) drbg_fini_sym_kernel() argument
1527 drbg_init_sym_kernel(struct drbg_state * drbg) drbg_init_sym_kernel() argument
1582 drbg_kcapi_sym_ctr(struct drbg_state * drbg,u8 * inbuf,u32 inlen,u8 * outbuf,u32 outlen) drbg_kcapi_sym_ctr() argument
1672 struct drbg_state *drbg = crypto_tfm_ctx(tfm); drbg_kcapi_init() local
1697 struct drbg_state *drbg = crypto_rng_ctx(tfm); drbg_kcapi_random() local
1716 struct drbg_state *drbg = crypto_rng_ctx(tfm); drbg_kcapi_seed() local
1752 struct drbg_state *drbg = NULL; drbg_healthcheck_sanity() local
[all...]
H A Dtestmgr.c32 #include <crypto/drbg.h>
152 struct drbg_test_suite drbg; member
3502 printk(KERN_ERR "alg: drbg: could not allocate DRNG handle for " in drbg_cavs_test()
3512 printk(KERN_ERR "alg: drbg: Failed to reset rng\n"); in drbg_cavs_test()
3526 printk(KERN_ERR "alg: drbg: could not obtain random data for " in drbg_cavs_test()
3541 printk(KERN_ERR "alg: drbg: could not obtain random data for " in drbg_cavs_test()
3561 const struct drbg_testvec *template = desc->suite.drbg.vecs; in alg_test_drbg()
3562 unsigned int tcount = desc->suite.drbg.count; in alg_test_drbg()
3570 printk(KERN_ERR "alg: drbg: Test %d failed for %s\n", in alg_test_drbg()
4618 .drbg
[all...]
H A DMakefile166 obj-$(CONFIG_CRYPTO_DRBG) += drbg.o
/linux/include/crypto/
H A Ddrbg.h71 int (*update)(struct drbg_state *drbg, struct list_head *seed,
73 int (*generate)(struct drbg_state *drbg,
76 int (*crypto_init)(struct drbg_state *drbg);
77 int (*crypto_fini)(struct drbg_state *drbg);
124 static inline __u8 drbg_statelen(struct drbg_state *drbg) in drbg_statelen() argument
126 if (drbg && drbg->core) in drbg_statelen()
127 return drbg->core->statelen; in drbg_statelen()
131 static inline __u8 drbg_blocklen(struct drbg_state *drbg) in drbg_blocklen() argument
133 if (drbg && drbg->core) in drbg_blocklen()
134 return drbg->core->blocklen_bytes; in drbg_blocklen()
[all …]
/linux/Documentation/crypto/
H A Dapi-samples.rst162 char *drbg = "drbg_nopr_sha256"; /* Hash DRBG with SHA-256, no PR */
170 rng = crypto_alloc_rng(drbg, 0, 0);
172 pr_debug("could not allocate RNG handle for %s\n", drbg);