Home
last modified time | relevance | path

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

/openbmc/linux/crypto/
H A Ddrbg.c196 static int drbg_uninstantiate(struct drbg_state *drbg);
243 static int drbg_fips_continuous_test(struct drbg_state *drbg, in drbg_fips_continuous_test() argument
246 unsigned short entropylen = drbg_sec_strength(drbg->core->flags); in drbg_fips_continuous_test()
253 if (list_empty(&drbg->test_data.list)) in drbg_fips_continuous_test()
259 if (!drbg->fips_primed) { in drbg_fips_continuous_test()
261 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
262 drbg->fips_primed = true; in drbg_fips_continuous_test()
266 ret = memcmp(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
269 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
308 static void drbg_kcapi_symsetkey(struct drbg_state *drbg,
[all …]
H A Dtestmgr.c152 struct drbg_test_suite drbg; member
3872 const struct drbg_testvec *template = desc->suite.drbg.vecs; in alg_test_drbg()
3873 unsigned int tcount = desc->suite.drbg.count; in alg_test_drbg()
4836 .drbg = __VECS(drbg_nopr_ctr_aes128_tv_template)
4843 .drbg = __VECS(drbg_nopr_ctr_aes192_tv_template)
4850 .drbg = __VECS(drbg_nopr_ctr_aes256_tv_template)
4865 .drbg = __VECS(drbg_nopr_hmac_sha256_tv_template)
4876 .drbg = __VECS(drbg_nopr_hmac_sha512_tv_template)
4887 .drbg = __VECS(drbg_nopr_sha256_tv_template)
4902 .drbg = __VECS(drbg_pr_ctr_aes128_tv_template)
[all …]
H A DMakefile169 obj-$(CONFIG_CRYPTO_DRBG) += drbg.o
/openbmc/linux/include/crypto/
H A 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 …]
/openbmc/linux/Documentation/crypto/
H A 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);
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/strongswan/
H A Dstrongswan_6.0.0.bb160 ${PN}-plugin-drbg \
/openbmc/linux/
H A Dopengrok2.0.log[all...]
H A Dopengrok1.0.log[all...]