Searched refs:reseed_counter (Results 1 - 10 of 10) sorted by relevance

/netbsd-current/crypto/external/bsd/openssl/dist/test/
H A Ddrbgtest.c103 DRBG_UINT(reseed_counter)
114 p->reseed_counter = n;
119 set_reseed_counter(drbg, reseed_counter(drbg) + 1);
208 if (!TEST_int_ne(primary_reseed = reseed_counter(primary), 0)
209 || !TEST_int_ne(public_reseed = reseed_counter(public), 0)
210 || !TEST_int_ne(private_reseed = reseed_counter(private), 0))
242 if (!TEST_int_ge(reseed_counter(primary), primary_reseed))
248 if (!TEST_int_ge(reseed_counter(public), public_reseed)
249 || !TEST_uint_ge(reseed_counter(public),
250 reseed_counter(primar
[all...]
/netbsd-current/sys/crypto/nist_hash_drbg/
H A Dnist_hash_drbg.h71 unsigned reseed_counter; member in struct:nist_hash_drbg
H A Dnist_hash_drbg.c111 D->reseed_counter = UINT_MAX; /* paranoia: make generate fail */
149 /* 5. reseed_counter = 1 */
150 D->reseed_counter = 1;
189 /* 5. reseed_counter = 1 */
190 D->reseed_counter = 1;
206 uint8_t reseed_counter[4];
211 * 1. If reseed_counter > reseed_interval, then return an
214 if (D->reseed_counter > NIST_HASH_DRBG_RESEED_INTERVAL)
243 /* 5. V = (V + H + C + reseed_counter) mod 2^seedlen */
244 be32enc(reseed_counter,
202 uint8_t reseed_counter[4]; local
1061 unsigned reseed_counter; local
[all...]
/netbsd-current/crypto/external/bsd/openssl.old/dist/test/
H A Ddrbgtest.c603 if (!TEST_int_ne(master->reseed_counter, 0)
604 || !TEST_int_ne(public->reseed_counter, 0)
605 || !TEST_int_ne(private->reseed_counter, 0))
609 if (!TEST_int_le(public->reseed_counter, master->reseed_counter)
610 || !TEST_int_le(private->reseed_counter, master->reseed_counter))
658 if (!TEST_int_eq(public->reseed_counter, master->reseed_counter)
659 || !TEST_int_eq(private->reseed_counter, maste
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/providers/implementations/rands/
H A Ddrbg_hash.c329 int reseed_counter = drbg->generate_counter; local
331 counter[0] = (unsigned char)((reseed_counter >> 24) & 0xff);
332 counter[1] = (unsigned char)((reseed_counter >> 16) & 0xff);
333 counter[2] = (unsigned char)((reseed_counter >> 8) & 0xff);
334 counter[3] = (unsigned char)(reseed_counter & 0xff);
345 /* (Step 5) V = (V + H + C + reseed_counter) mod (2^seedlen_bits) */
348 /* V = (V + reseed_counter) mod (2^seedlen_bits) */
H A Ddrbg.c126 r = tsan_load(&drbg->reseed_counter) - 2;
444 drbg->reseed_next_counter = tsan_load(&drbg->reseed_counter);
471 tsan_store(&drbg->reseed_counter, drbg->reseed_next_counter);
547 drbg->reseed_next_counter = tsan_load(&drbg->reseed_counter);
594 tsan_store(&drbg->reseed_counter, drbg->reseed_next_counter);
822 drbg->reseed_counter = 1;
915 && !OSSL_PARAM_set_uint(p, tsan_load(&drbg->reseed_counter)))
H A Ddrbg_local.h137 * (Starts at 1). This value is the reseed_counter as defined in
163 TSAN_QUALIFIER unsigned int reseed_counter; member in struct:prov_drbg_st
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/rand/
H A Drand_local.h267 TSAN_QUALIFIER unsigned int reseed_counter; member in struct:rand_drbg_st
H A Ddrbg_lib.c358 tsan_counter(&drbg->reseed_counter);
443 tsan_counter(&drbg->reseed_counter);
614 if (drbg->reseed_counter != tsan_load(&drbg->parent->reseed_counter))
873 drbg->reseed_counter = 1;
H A Drand_lib.c178 tsan_store(&drbg->reseed_counter,
179 tsan_load(&drbg->parent->reseed_counter));

Completed in 235 milliseconds