Lines Matching refs:drbg_state

195 static int drbg_uninstantiate(struct drbg_state *drbg);
242 static int drbg_fips_continuous_test(struct drbg_state *drbg, in drbg_fips_continuous_test()
307 static void drbg_kcapi_symsetkey(struct drbg_state *drbg,
309 static int drbg_kcapi_sym(struct drbg_state *drbg, unsigned char *outval,
311 static int drbg_init_sym_kernel(struct drbg_state *drbg);
312 static int drbg_fini_sym_kernel(struct drbg_state *drbg);
313 static int drbg_kcapi_sym_ctr(struct drbg_state *drbg,
319 static int drbg_ctr_bcc(struct drbg_state *drbg, in drbg_ctr_bcc()
397 static int drbg_ctr_df(struct drbg_state *drbg, in drbg_ctr_df()
531 static int drbg_ctr_update(struct drbg_state *drbg, struct list_head *seed, in drbg_ctr_update()
594 static int drbg_ctr_generate(struct drbg_state *drbg, in drbg_ctr_generate()
634 static int drbg_kcapi_hash(struct drbg_state *drbg, unsigned char *outval,
636 static void drbg_kcapi_hmacsetkey(struct drbg_state *drbg,
638 static int drbg_init_hash_kernel(struct drbg_state *drbg);
639 static int drbg_fini_hash_kernel(struct drbg_state *drbg);
654 static int drbg_hmac_update(struct drbg_state *drbg, struct list_head *seed, in drbg_hmac_update()
706 static int drbg_hmac_generate(struct drbg_state *drbg, in drbg_hmac_generate()
821 static int drbg_hash_df(struct drbg_state *drbg, in drbg_hash_df()
860 static int drbg_hash_update(struct drbg_state *drbg, struct list_head *seed, in drbg_hash_update()
903 static int drbg_hash_process_addtl(struct drbg_state *drbg, in drbg_hash_process_addtl()
935 static int drbg_hash_hashgen(struct drbg_state *drbg, in drbg_hash_hashgen()
976 static int drbg_hash_generate(struct drbg_state *drbg, in drbg_hash_generate()
1038 static inline int __drbg_seed(struct drbg_state *drbg, struct list_head *seed, in __drbg_seed()
1053 static inline int drbg_get_random_bytes(struct drbg_state *drbg, in drbg_get_random_bytes()
1073 struct drbg_state *drbg = container_of(work, struct drbg_state, in drbg_async_seed()
1118 static int drbg_seed(struct drbg_state *drbg, struct drbg_string *pers, in drbg_seed()
1218 static inline void drbg_dealloc_state(struct drbg_state *drbg) in drbg_dealloc_state()
1244 static inline int drbg_alloc_state(struct drbg_state *drbg) in drbg_alloc_state()
1346 static int drbg_generate(struct drbg_state *drbg, in drbg_generate()
1473 static int drbg_generate_long(struct drbg_state *drbg, in drbg_generate_long()
1496 struct drbg_state *drbg = container_of(rdy, struct drbg_state, in drbg_schedule_async_seed()
1502 static int drbg_prepare_hrng(struct drbg_state *drbg) in drbg_prepare_hrng()
1558 static int drbg_instantiate(struct drbg_state *drbg, struct drbg_string *pers, in drbg_instantiate()
1630 static int drbg_uninstantiate(struct drbg_state *drbg) in drbg_uninstantiate()
1658 struct drbg_state *drbg = crypto_rng_ctx(tfm); in drbg_kcapi_set_entropy()
1675 static int drbg_init_hash_kernel(struct drbg_state *drbg) in drbg_init_hash_kernel()
1700 static int drbg_fini_hash_kernel(struct drbg_state *drbg) in drbg_fini_hash_kernel()
1711 static void drbg_kcapi_hmacsetkey(struct drbg_state *drbg, in drbg_kcapi_hmacsetkey()
1719 static int drbg_kcapi_hash(struct drbg_state *drbg, unsigned char *outval, in drbg_kcapi_hash()
1733 static int drbg_fini_sym_kernel(struct drbg_state *drbg) in drbg_fini_sym_kernel()
1755 static int drbg_init_sym_kernel(struct drbg_state *drbg) in drbg_init_sym_kernel()
1814 static void drbg_kcapi_symsetkey(struct drbg_state *drbg, in drbg_kcapi_symsetkey()
1823 static int drbg_kcapi_sym(struct drbg_state *drbg, unsigned char *outval, in drbg_kcapi_sym()
1835 static int drbg_kcapi_sym_ctr(struct drbg_state *drbg, in drbg_kcapi_sym_ctr()
1925 struct drbg_state *drbg = crypto_tfm_ctx(tfm); in drbg_kcapi_init()
1950 struct drbg_state *drbg = crypto_rng_ctx(tfm); in drbg_kcapi_random()
1969 struct drbg_state *drbg = crypto_rng_ctx(tfm); in drbg_kcapi_seed()
2005 struct drbg_state *drbg = NULL; in drbg_healthcheck_sanity()
2025 drbg = kzalloc(sizeof(struct drbg_state), GFP_KERNEL); in drbg_healthcheck_sanity()
2098 alg->base.cra_ctxsize = sizeof(struct drbg_state); in drbg_fill_array()