Lines Matching refs:drbg_cores
116 static const struct drbg_core drbg_cores[] = {
1568 drbg->core = &drbg_cores[coreref];
1861 * The code uses the drbg_cores definition to do this
1890 for (i = 0; ARRAY_SIZE(drbg_cores) > i; i++) {
1891 if (!memcmp(cra_driver_name + start, drbg_cores[i].cra_name,
2006 drbg->core = &drbg_cores[coreref];
2045 * from drbg_cores[] is used.
2087 unsigned int j = 0; /* pointer to drbg_cores */
2094 if (ARRAY_SIZE(drbg_cores) * 2 > ARRAY_SIZE(drbg_algs)) {
2097 ARRAY_SIZE(drbg_cores) * 2, ARRAY_SIZE(drbg_algs));
2103 * we instantiate each DRBG in drbg_cores[] twice.
2110 for (j = 0; ARRAY_SIZE(drbg_cores) > j; j++, i++)
2111 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 1);
2112 for (j = 0; ARRAY_SIZE(drbg_cores) > j; j++, i++)
2113 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 0);
2114 return crypto_register_rngs(drbg_algs, (ARRAY_SIZE(drbg_cores) * 2));
2119 crypto_unregister_rngs(drbg_algs, (ARRAY_SIZE(drbg_cores) * 2));