Home
last modified time | relevance | path

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

/linux-6.12.1/crypto/
Ddrbg.c184 static int drbg_uninstantiate(struct drbg_state *drbg);
231 static int drbg_fips_continuous_test(struct drbg_state *drbg, in drbg_fips_continuous_test() argument
234 unsigned short entropylen = drbg_sec_strength(drbg->core->flags); in drbg_fips_continuous_test()
241 if (list_empty(&drbg->test_data.list)) in drbg_fips_continuous_test()
247 if (!drbg->fips_primed) { in drbg_fips_continuous_test()
249 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
250 drbg->fips_primed = true; in drbg_fips_continuous_test()
254 ret = memcmp(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
257 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
296 static void drbg_kcapi_symsetkey(struct drbg_state *drbg,
[all …]
Dtestmgr.c152 struct drbg_test_suite drbg; member
3911 const struct drbg_testvec *template = desc->suite.drbg.vecs; in alg_test_drbg()
3912 unsigned int tcount = desc->suite.drbg.count; in alg_test_drbg()
4870 .drbg = __VECS(drbg_nopr_ctr_aes128_tv_template)
4877 .drbg = __VECS(drbg_nopr_ctr_aes192_tv_template)
4884 .drbg = __VECS(drbg_nopr_ctr_aes256_tv_template)
4891 .drbg = __VECS(drbg_nopr_hmac_sha256_tv_template)
4905 .drbg = __VECS(drbg_nopr_hmac_sha512_tv_template)
4912 .drbg = __VECS(drbg_nopr_sha256_tv_template)
4927 .drbg = __VECS(drbg_pr_ctr_aes128_tv_template)
[all …]
DMakefile165 obj-$(CONFIG_CRYPTO_DRBG) += drbg.o
/linux-6.12.1/include/crypto/
Ddrbg.h94 int (*update)(struct drbg_state *drbg, struct list_head *seed,
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()
154 static inline __u8 drbg_blocklen(struct drbg_state *drbg) in drbg_blocklen() argument
156 if (drbg && drbg->core) in drbg_blocklen()
157 return drbg->core->blocklen_bytes; in drbg_blocklen()
[all …]
/linux-6.12.1/Documentation/crypto/
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);