Home | History | Annotate | Download | only in kern

Lines Matching defs:seed

61 	uint8_t seed[NIST_HASH_DRBG_SEEDLEN_BYTES] = {0};
88 * Try to get a seed from the entropy pool. Fail if we would
98 error = entropy_extract(seed, sizeof seed, extractflags);
103 if (nist_hash_drbg_instantiate(&drbg, seed, sizeof seed, NULL, 0,
107 /* Promptly zero the seed. */
108 explicit_memset(seed, 0, sizeof seed);
117 * seed size. Programs can't rely on long reads.
121 n = MIN(n, sizeof seed);
127 CTASSERT(sizeof seed <= RANDOM_BUFSIZE);
136 * Get a fresh seed without blocking -- we have
144 error = entropy_extract(seed, sizeof seed,
150 if (nist_hash_drbg_reseed(&drbg, seed, sizeof seed,
154 /* Promptly zero the seed. */
155 explicit_memset(seed, 0, sizeof seed);