Searched refs:reseed_counter (Results 1 - 11 of 11) sorted by relevance
/third_party/openssl/test/ |
H A D | drbgtest.c | 103 DRBG_UINT(reseed_counter) 114 p->reseed_counter = n; in set_reseed_counter() 119 set_reseed_counter(drbg, reseed_counter(drbg) + 1); in inc_reseed_counter() 208 if (!TEST_int_ne(primary_reseed = reseed_counter(primary), 0) in test_drbg_reseed() 209 || !TEST_int_ne(public_reseed = reseed_counter(public), 0) in test_drbg_reseed() 210 || !TEST_int_ne(private_reseed = reseed_counter(private), 0)) in test_drbg_reseed() 242 if (!TEST_int_ge(reseed_counter(primary), primary_reseed)) in test_drbg_reseed() 248 if (!TEST_int_ge(reseed_counter(public), public_reseed) in test_drbg_reseed() 249 || !TEST_uint_ge(reseed_counter(public), in test_drbg_reseed() 250 reseed_counter(primar in test_drbg_reseed() [all...] |
/third_party/mbedtls/library/ |
H A D | ctr_drbg.c | 84 ctx->reseed_counter = -1; in mbedtls_ctr_drbg_init() 112 ctx->reseed_counter = -1; in mbedtls_ctr_drbg_free() 151 ctx->reseed_counter = (int) len; in mbedtls_ctr_drbg_set_nonce_len() 497 ctx->reseed_counter = 1; in mbedtls_ctr_drbg_reseed_internal() 558 /* ctx->reseed_counter contains the desired amount of entropy to in mbedtls_ctr_drbg_seed() 562 nonce_len = (ctx->reseed_counter >= 0 ? in mbedtls_ctr_drbg_seed() 563 (size_t) ctx->reseed_counter : in mbedtls_ctr_drbg_seed() 632 if (ctx->reseed_counter > ctx->reseed_interval || in mbedtls_ctr_drbg_random_with_add() 689 ctx->reseed_counter++; in mbedtls_ctr_drbg_random_with_add()
|
H A D | hmac_drbg.c | 198 /* 3. Reset reseed_counter */ in hmac_drbg_reseed_core() 199 ctx->reseed_counter = 1; in hmac_drbg_reseed_core() 329 ctx->reseed_counter > ctx->reseed_interval)) { in mbedtls_hmac_drbg_random_with_add() 372 ctx->reseed_counter++; in mbedtls_hmac_drbg_random_with_add()
|
/third_party/node/deps/openssl/openssl/providers/implementations/rands/ |
H A D | drbg_hash.c | 329 int reseed_counter = drbg->generate_counter; in drbg_hash_generate() local 331 counter[0] = (unsigned char)((reseed_counter >> 24) & 0xff); in drbg_hash_generate() 332 counter[1] = (unsigned char)((reseed_counter >> 16) & 0xff); in drbg_hash_generate() 333 counter[2] = (unsigned char)((reseed_counter >> 8) & 0xff); in drbg_hash_generate() 334 counter[3] = (unsigned char)(reseed_counter & 0xff); in drbg_hash_generate() 345 /* (Step 5) V = (V + H + C + reseed_counter) mod (2^seedlen_bits) */ in drbg_hash_generate() 348 /* V = (V + reseed_counter) mod (2^seedlen_bits) */ in drbg_hash_generate()
|
H A D | drbg.c | 126 r = tsan_load(&drbg->reseed_counter) - 2; in get_parent_reseed_count() 444 drbg->reseed_next_counter = tsan_load(&drbg->reseed_counter); in ossl_prov_drbg_instantiate() 471 tsan_store(&drbg->reseed_counter, drbg->reseed_next_counter); in ossl_prov_drbg_instantiate() 547 drbg->reseed_next_counter = tsan_load(&drbg->reseed_counter); in ossl_prov_drbg_reseed() 594 tsan_store(&drbg->reseed_counter, drbg->reseed_next_counter); in ossl_prov_drbg_reseed() 821 drbg->reseed_counter = 1; in ossl_rand_drbg_new() 914 && !OSSL_PARAM_set_uint(p, tsan_load(&drbg->reseed_counter))) in ossl_drbg_get_ctx_params()
|
H A D | drbg_local.h | 137 * (Starts at 1). This value is the reseed_counter as defined in 163 TSAN_QUALIFIER unsigned int reseed_counter; member
|
/third_party/openssl/providers/implementations/rands/ |
H A D | drbg_hash.c | 329 int reseed_counter = drbg->generate_counter; in drbg_hash_generate() local 331 counter[0] = (unsigned char)((reseed_counter >> 24) & 0xff); in drbg_hash_generate() 332 counter[1] = (unsigned char)((reseed_counter >> 16) & 0xff); in drbg_hash_generate() 333 counter[2] = (unsigned char)((reseed_counter >> 8) & 0xff); in drbg_hash_generate() 334 counter[3] = (unsigned char)(reseed_counter & 0xff); in drbg_hash_generate() 345 /* (Step 5) V = (V + H + C + reseed_counter) mod (2^seedlen_bits) */ in drbg_hash_generate() 348 /* V = (V + reseed_counter) mod (2^seedlen_bits) */ in drbg_hash_generate()
|
H A D | drbg.c | 126 r = tsan_load(&drbg->reseed_counter) - 2; in get_parent_reseed_count() 444 drbg->reseed_next_counter = tsan_load(&drbg->reseed_counter); in ossl_prov_drbg_instantiate() 471 tsan_store(&drbg->reseed_counter, drbg->reseed_next_counter); in ossl_prov_drbg_instantiate() 547 drbg->reseed_next_counter = tsan_load(&drbg->reseed_counter); in ossl_prov_drbg_reseed() 594 tsan_store(&drbg->reseed_counter, drbg->reseed_next_counter); in ossl_prov_drbg_reseed() 821 drbg->reseed_counter = 1; in ossl_rand_drbg_new() 914 && !OSSL_PARAM_set_uint(p, tsan_load(&drbg->reseed_counter))) in ossl_drbg_get_ctx_params()
|
H A D | drbg_local.h | 137 * (Starts at 1). This value is the reseed_counter as defined in 163 TSAN_QUALIFIER unsigned int reseed_counter; member
|
/third_party/mbedtls/include/mbedtls/ |
H A D | hmac_drbg.h | 91 int MBEDTLS_PRIVATE(reseed_counter); /*!< reseed counter */
|
H A D | ctr_drbg.h | 172 int MBEDTLS_PRIVATE(reseed_counter); /*!< The reseed counter.
|
Completed in 11 milliseconds