Searched refs:drng (Results 1 – 3 of 3) sorted by relevance
/linux-6.3-rc2/crypto/ |
A D | algif_rng.c | 56 struct crypto_rng *drng; member 62 struct crypto_rng *drng; member 73 static int _rng_recvmsg(struct crypto_rng *drng, struct msghdr *msg, size_t len, in _rng_recvmsg() argument 97 genlen = crypto_rng_generate(drng, addtl, addtl_len, result, len); in _rng_recvmsg() 114 return _rng_recvmsg(ctx->drng, msg, len, NULL, 0); in rng_recvmsg() 126 ret = _rng_recvmsg(ctx->drng, msg, len, ctx->addtl, ctx->addtl_len); in rng_test_recvmsg() 217 pctx->drng = rng; in rng_bind() 227 crypto_free_rng(pctx->drng); in rng_release() 263 ctx->drng = pctx->drng; in rng_accept_parent() 284 return crypto_rng_reset(pctx->drng, seed, seedlen); in rng_setkey() [all …]
|
A D | testmgr.c | 3730 struct crypto_rng *drng; in drbg_cavs_test() local 3738 drng = crypto_alloc_rng(driver, type, mask); in drbg_cavs_test() 3739 if (IS_ERR(drng)) { in drbg_cavs_test() 3749 ret = crypto_drbg_reset_test(drng, &pers, &test_data); in drbg_cavs_test() 3758 ret = crypto_drbg_get_bytes_addtl_test(drng, in drbg_cavs_test() 3761 ret = crypto_drbg_get_bytes_addtl(drng, in drbg_cavs_test() 3773 ret = crypto_drbg_get_bytes_addtl_test(drng, in drbg_cavs_test() 3776 ret = crypto_drbg_get_bytes_addtl(drng, in drbg_cavs_test() 3788 crypto_free_rng(drng); in drbg_cavs_test()
|
/linux-6.3-rc2/include/crypto/ |
A D | drbg.h | 208 static inline int crypto_drbg_get_bytes_addtl(struct crypto_rng *drng, in crypto_drbg_get_bytes_addtl() argument 212 return crypto_rng_generate(drng, addtl->buf, addtl->len, in crypto_drbg_get_bytes_addtl() 233 static inline int crypto_drbg_get_bytes_addtl_test(struct crypto_rng *drng, in crypto_drbg_get_bytes_addtl_test() argument 238 crypto_rng_set_entropy(drng, test_data->testentropy->buf, in crypto_drbg_get_bytes_addtl_test() 240 return crypto_rng_generate(drng, addtl->buf, addtl->len, in crypto_drbg_get_bytes_addtl_test() 258 static inline int crypto_drbg_reset_test(struct crypto_rng *drng, in crypto_drbg_reset_test() argument 262 crypto_rng_set_entropy(drng, test_data->testentropy->buf, in crypto_drbg_reset_test() 264 return crypto_rng_reset(drng, pers->buf, pers->len); in crypto_drbg_reset_test()
|
Completed in 14 milliseconds