Searched refs:drbg (Results 1 – 5 of 5) sorted by relevance
/linux-6.3-rc2/crypto/ |
A D | drbg.c | 578 memcpy(drbg->V, temp + drbg_keylen(drbg), drbg_blocklen(drbg)); in drbg_ctr_update() 580 crypto_inc(drbg->V, drbg_blocklen(drbg)); in drbg_ctr_update() 666 memset(drbg->V, 1, drbg_statelen(drbg)); in drbg_hmac_update() 667 drbg_kcapi_hmacsetkey(drbg, drbg->C); in drbg_hmac_update() 691 drbg_kcapi_hmacsetkey(drbg, drbg->C); in drbg_hmac_update() 885 ret = drbg_hash_df(drbg, drbg->V, drbg_statelen(drbg), &datalist); in drbg_hash_update() 896 ret = drbg_hash_df(drbg, drbg->C, drbg_statelen(drbg), &datalist2); in drbg_hash_update() 1014 drbg->C, drbg_statelen(drbg)); in drbg_hash_generate() 1307 ret = drbg->d_ops->crypto_init(drbg); in drbg_alloc_state() 1357 drbg->d_ops->crypto_fini(drbg); in drbg_alloc_state() [all …]
|
A D | testmgr.c | 152 struct drbg_test_suite drbg; member 3801 unsigned int tcount = desc->suite.drbg.count; in alg_test_drbg() 4758 .drbg = __VECS(drbg_nopr_ctr_aes128_tv_template) 4765 .drbg = __VECS(drbg_nopr_ctr_aes192_tv_template) 4772 .drbg = __VECS(drbg_nopr_ctr_aes256_tv_template) 4787 .drbg = __VECS(drbg_nopr_hmac_sha256_tv_template) 4798 .drbg = __VECS(drbg_nopr_hmac_sha512_tv_template) 4809 .drbg = __VECS(drbg_nopr_sha256_tv_template) 4824 .drbg = __VECS(drbg_pr_ctr_aes128_tv_template) 4844 .drbg = __VECS(drbg_pr_hmac_sha256_tv_template) [all …]
|
A D | Makefile | 168 obj-$(CONFIG_CRYPTO_DRBG) += drbg.o
|
/linux-6.3-rc2/include/crypto/ |
A D | drbg.h | 96 int (*generate)(struct drbg_state *drbg, 99 int (*crypto_init)(struct drbg_state *drbg); 100 int (*crypto_fini)(struct drbg_state *drbg); 147 static inline __u8 drbg_statelen(struct drbg_state *drbg) in drbg_statelen() argument 149 if (drbg && drbg->core) in drbg_statelen() 150 return drbg->core->statelen; in drbg_statelen() 156 if (drbg && drbg->core) in drbg_blocklen() 157 return drbg->core->blocklen_bytes; in drbg_blocklen() 161 static inline __u8 drbg_keylen(struct drbg_state *drbg) in drbg_keylen() argument 163 if (drbg && drbg->core) in drbg_keylen() [all …]
|
/linux-6.3-rc2/Documentation/crypto/ |
A D | api-samples.rst | 162 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);
|
Completed in 24 milliseconds