Lines Matching refs:drbg_cores
118 static const struct drbg_core drbg_cores[] = {
1595 drbg->core = &drbg_cores[coreref];
1887 * The code uses the drbg_cores definition to do this
1916 for (i = 0; ARRAY_SIZE(drbg_cores) > i; i++) {
1917 if (!memcmp(cra_driver_name + start, drbg_cores[i].cra_name,
2032 drbg->core = &drbg_cores[coreref];
2071 * from drbg_cores[] is used.
2113 unsigned int j = 0; /* pointer to drbg_cores */
2120 if (ARRAY_SIZE(drbg_cores) * 2 > ARRAY_SIZE(drbg_algs)) {
2123 ARRAY_SIZE(drbg_cores) * 2, ARRAY_SIZE(drbg_algs));
2129 * we instantiate each DRBG in drbg_cores[] twice.
2136 for (j = 0; ARRAY_SIZE(drbg_cores) > j; j++, i++)
2137 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 1);
2138 for (j = 0; ARRAY_SIZE(drbg_cores) > j; j++, i++)
2139 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 0);
2140 return crypto_register_rngs(drbg_algs, (ARRAY_SIZE(drbg_cores) * 2));
2145 crypto_unregister_rngs(drbg_algs, (ARRAY_SIZE(drbg_cores) * 2));