Lines Matching refs:drbg_state

196 static int drbg_uninstantiate(struct drbg_state *drbg);
243 static int drbg_fips_continuous_test(struct drbg_state *drbg, in drbg_fips_continuous_test()
308 static void drbg_kcapi_symsetkey(struct drbg_state *drbg,
310 static int drbg_kcapi_sym(struct drbg_state *drbg, unsigned char *outval,
312 static int drbg_init_sym_kernel(struct drbg_state *drbg);
313 static int drbg_fini_sym_kernel(struct drbg_state *drbg);
314 static int drbg_kcapi_sym_ctr(struct drbg_state *drbg,
320 static int drbg_ctr_bcc(struct drbg_state *drbg, in drbg_ctr_bcc()
398 static int drbg_ctr_df(struct drbg_state *drbg, in drbg_ctr_df()
532 static int drbg_ctr_update(struct drbg_state *drbg, struct list_head *seed, in drbg_ctr_update()
595 static int drbg_ctr_generate(struct drbg_state *drbg, in drbg_ctr_generate()
635 static int drbg_kcapi_hash(struct drbg_state *drbg, unsigned char *outval,
637 static void drbg_kcapi_hmacsetkey(struct drbg_state *drbg,
639 static int drbg_init_hash_kernel(struct drbg_state *drbg);
640 static int drbg_fini_hash_kernel(struct drbg_state *drbg);
655 static int drbg_hmac_update(struct drbg_state *drbg, struct list_head *seed, in drbg_hmac_update()
707 static int drbg_hmac_generate(struct drbg_state *drbg, in drbg_hmac_generate()
822 static int drbg_hash_df(struct drbg_state *drbg, in drbg_hash_df()
861 static int drbg_hash_update(struct drbg_state *drbg, struct list_head *seed, in drbg_hash_update()
904 static int drbg_hash_process_addtl(struct drbg_state *drbg, in drbg_hash_process_addtl()
936 static int drbg_hash_hashgen(struct drbg_state *drbg, in drbg_hash_hashgen()
977 static int drbg_hash_generate(struct drbg_state *drbg, in drbg_hash_generate()
1039 static inline int __drbg_seed(struct drbg_state *drbg, struct list_head *seed, in __drbg_seed()
1076 static inline int drbg_get_random_bytes(struct drbg_state *drbg, in drbg_get_random_bytes()
1092 static int drbg_seed_from_random(struct drbg_state *drbg) in drbg_seed_from_random()
1117 static bool drbg_nopr_reseed_interval_elapsed(struct drbg_state *drbg) in drbg_nopr_reseed_interval_elapsed()
1148 static int drbg_seed(struct drbg_state *drbg, struct drbg_string *pers, in drbg_seed()
1255 static inline void drbg_dealloc_state(struct drbg_state *drbg) in drbg_dealloc_state()
1281 static inline int drbg_alloc_state(struct drbg_state *drbg) in drbg_alloc_state()
1383 static int drbg_generate(struct drbg_state *drbg, in drbg_generate()
1517 static int drbg_generate_long(struct drbg_state *drbg, in drbg_generate_long()
1538 static int drbg_prepare_hrng(struct drbg_state *drbg) in drbg_prepare_hrng()
1574 static int drbg_instantiate(struct drbg_state *drbg, struct drbg_string *pers, in drbg_instantiate()
1639 static int drbg_uninstantiate(struct drbg_state *drbg) in drbg_uninstantiate()
1662 struct drbg_state *drbg = crypto_rng_ctx(tfm); in drbg_kcapi_set_entropy()
1679 static int drbg_init_hash_kernel(struct drbg_state *drbg) in drbg_init_hash_kernel()
1704 static int drbg_fini_hash_kernel(struct drbg_state *drbg) in drbg_fini_hash_kernel()
1715 static void drbg_kcapi_hmacsetkey(struct drbg_state *drbg, in drbg_kcapi_hmacsetkey()
1723 static int drbg_kcapi_hash(struct drbg_state *drbg, unsigned char *outval, in drbg_kcapi_hash()
1737 static int drbg_fini_sym_kernel(struct drbg_state *drbg) in drbg_fini_sym_kernel()
1759 static int drbg_init_sym_kernel(struct drbg_state *drbg) in drbg_init_sym_kernel()
1818 static void drbg_kcapi_symsetkey(struct drbg_state *drbg, in drbg_kcapi_symsetkey()
1826 static int drbg_kcapi_sym(struct drbg_state *drbg, unsigned char *outval, in drbg_kcapi_sym()
1837 static int drbg_kcapi_sym_ctr(struct drbg_state *drbg, in drbg_kcapi_sym_ctr()
1927 struct drbg_state *drbg = crypto_tfm_ctx(tfm); in drbg_kcapi_init()
1952 struct drbg_state *drbg = crypto_rng_ctx(tfm); in drbg_kcapi_random()
1971 struct drbg_state *drbg = crypto_rng_ctx(tfm); in drbg_kcapi_seed()
2007 struct drbg_state *drbg = NULL; in drbg_healthcheck_sanity()
2027 drbg = kzalloc(sizeof(struct drbg_state), GFP_KERNEL); in drbg_healthcheck_sanity()
2100 alg->base.cra_ctxsize = sizeof(struct drbg_state); in drbg_fill_array()