Searched refs:drbg_algs (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/crypto/ |
H A D | drbg.c | 2040 static struct rng_alg drbg_algs[22]; variable 2043 * Fill the array drbg_algs used to register the different DRBGs 2086 unsigned int i = 0; /* pointer to drbg_algs */ in drbg_init() 2094 if (ARRAY_SIZE(drbg_cores) * 2 > ARRAY_SIZE(drbg_algs)) { in drbg_init() 2097 ARRAY_SIZE(drbg_cores) * 2, ARRAY_SIZE(drbg_algs)); in drbg_init() 2105 * As the order of placing them into the drbg_algs array matters in drbg_init() 2111 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 1); in drbg_init() 2113 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 0); in drbg_init() 2114 return crypto_register_rngs(drbg_algs, (ARRAY_SIZE(drbg_cores) * 2)); in drbg_init() 2119 crypto_unregister_rngs(drbg_algs, (ARRAY_SIZ in drbg_exit() [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | drbg.c | 2066 static struct rng_alg drbg_algs[22]; variable 2069 * Fill the array drbg_algs used to register the different DRBGs 2112 unsigned int i = 0; /* pointer to drbg_algs */ in drbg_init() 2120 if (ARRAY_SIZE(drbg_cores) * 2 > ARRAY_SIZE(drbg_algs)) { in drbg_init() 2123 ARRAY_SIZE(drbg_cores) * 2, ARRAY_SIZE(drbg_algs)); in drbg_init() 2131 * As the order of placing them into the drbg_algs array matters in drbg_init() 2137 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 1); in drbg_init() 2139 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 0); in drbg_init() 2140 return crypto_register_rngs(drbg_algs, (ARRAY_SIZE(drbg_cores) * 2)); in drbg_init() 2145 crypto_unregister_rngs(drbg_algs, (ARRAY_SIZ in drbg_exit() [all...] |
Completed in 5 milliseconds