Lines Matching refs:drbg_state

194 static int drbg_uninstantiate(struct drbg_state *drbg);
241 static int drbg_fips_continuous_test(struct drbg_state *drbg, in drbg_fips_continuous_test()
306 static void drbg_kcapi_symsetkey(struct drbg_state *drbg,
308 static int drbg_kcapi_sym(struct drbg_state *drbg, unsigned char *outval,
310 static int drbg_init_sym_kernel(struct drbg_state *drbg);
311 static int drbg_fini_sym_kernel(struct drbg_state *drbg);
312 static int drbg_kcapi_sym_ctr(struct drbg_state *drbg,
318 static int drbg_ctr_bcc(struct drbg_state *drbg, in drbg_ctr_bcc()
396 static int drbg_ctr_df(struct drbg_state *drbg, in drbg_ctr_df()
530 static int drbg_ctr_update(struct drbg_state *drbg, struct list_head *seed, in drbg_ctr_update()
593 static int drbg_ctr_generate(struct drbg_state *drbg, in drbg_ctr_generate()
633 static int drbg_kcapi_hash(struct drbg_state *drbg, unsigned char *outval,
635 static void drbg_kcapi_hmacsetkey(struct drbg_state *drbg,
637 static int drbg_init_hash_kernel(struct drbg_state *drbg);
638 static int drbg_fini_hash_kernel(struct drbg_state *drbg);
653 static int drbg_hmac_update(struct drbg_state *drbg, struct list_head *seed, in drbg_hmac_update()
705 static int drbg_hmac_generate(struct drbg_state *drbg, in drbg_hmac_generate()
820 static int drbg_hash_df(struct drbg_state *drbg, in drbg_hash_df()
859 static int drbg_hash_update(struct drbg_state *drbg, struct list_head *seed, in drbg_hash_update()
902 static int drbg_hash_process_addtl(struct drbg_state *drbg, in drbg_hash_process_addtl()
934 static int drbg_hash_hashgen(struct drbg_state *drbg, in drbg_hash_hashgen()
975 static int drbg_hash_generate(struct drbg_state *drbg, in drbg_hash_generate()
1037 static inline int __drbg_seed(struct drbg_state *drbg, struct list_head *seed, in __drbg_seed()
1072 static inline int drbg_get_random_bytes(struct drbg_state *drbg, in drbg_get_random_bytes()
1088 static int drbg_seed_from_random(struct drbg_state *drbg) in drbg_seed_from_random()
1124 static int drbg_seed(struct drbg_state *drbg, struct drbg_string *pers, in drbg_seed()
1228 static inline void drbg_dealloc_state(struct drbg_state *drbg) in drbg_dealloc_state()
1254 static inline int drbg_alloc_state(struct drbg_state *drbg) in drbg_alloc_state()
1354 static int drbg_generate(struct drbg_state *drbg, in drbg_generate()
1487 static int drbg_generate_long(struct drbg_state *drbg, in drbg_generate_long()
1508 static int drbg_prepare_hrng(struct drbg_state *drbg) in drbg_prepare_hrng()
1544 static int drbg_instantiate(struct drbg_state *drbg, struct drbg_string *pers, in drbg_instantiate()
1608 static int drbg_uninstantiate(struct drbg_state *drbg) in drbg_uninstantiate()
1631 struct drbg_state *drbg = crypto_rng_ctx(tfm); in drbg_kcapi_set_entropy()
1648 static int drbg_init_hash_kernel(struct drbg_state *drbg) in drbg_init_hash_kernel()
1674 static int drbg_fini_hash_kernel(struct drbg_state *drbg) in drbg_fini_hash_kernel()
1685 static void drbg_kcapi_hmacsetkey(struct drbg_state *drbg, in drbg_kcapi_hmacsetkey()
1693 static int drbg_kcapi_hash(struct drbg_state *drbg, unsigned char *outval, in drbg_kcapi_hash()
1707 static int drbg_fini_sym_kernel(struct drbg_state *drbg) in drbg_fini_sym_kernel()
1729 static int drbg_init_sym_kernel(struct drbg_state *drbg) in drbg_init_sym_kernel()
1788 static void drbg_kcapi_symsetkey(struct drbg_state *drbg, in drbg_kcapi_symsetkey()
1797 static int drbg_kcapi_sym(struct drbg_state *drbg, unsigned char *outval, in drbg_kcapi_sym()
1809 static int drbg_kcapi_sym_ctr(struct drbg_state *drbg, in drbg_kcapi_sym_ctr()
1899 struct drbg_state *drbg = crypto_tfm_ctx(tfm); in drbg_kcapi_init()
1924 struct drbg_state *drbg = crypto_rng_ctx(tfm); in drbg_kcapi_random()
1943 struct drbg_state *drbg = crypto_rng_ctx(tfm); in drbg_kcapi_seed()
1979 struct drbg_state *drbg = NULL; in drbg_healthcheck_sanity()
1999 drbg = kzalloc(sizeof(struct drbg_state), GFP_KERNEL); in drbg_healthcheck_sanity()
2072 alg->base.cra_ctxsize = sizeof(struct drbg_state); in drbg_fill_array()