Home
last modified time | relevance | path

Searched refs:entropy_len (Results 1 – 13 of 13) sorted by relevance

/third_party/mbedtls/library/
Dctr_drbg.c90 ctx->entropy_len = len; in mbedtls_ctr_drbg_set_entropy_len()
357 if( ctx->entropy_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT ) in mbedtls_ctr_drbg_reseed_internal()
359 if( nonce_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT - ctx->entropy_len ) in mbedtls_ctr_drbg_reseed_internal()
361 if( len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT - ctx->entropy_len - nonce_len ) in mbedtls_ctr_drbg_reseed_internal()
367 if( 0 != ctx->f_entropy( ctx->p_entropy, seed, ctx->entropy_len ) ) in mbedtls_ctr_drbg_reseed_internal()
371 seedlen += ctx->entropy_len; in mbedtls_ctr_drbg_reseed_internal()
415 static size_t good_nonce_len( size_t entropy_len ) in good_nonce_len() argument
417 if( entropy_len >= MBEDTLS_CTR_DRBG_KEYSIZE * 3 / 2 ) in good_nonce_len()
420 return( ( entropy_len + 1 ) / 2 ); in good_nonce_len()
456 if( ctx->entropy_len == 0 ) in mbedtls_ctr_drbg_seed()
[all …]
Dhmac_drbg.c156 total_entropy_len = ctx->entropy_len; in hmac_drbg_reseed_core()
158 total_entropy_len = ctx->entropy_len * 3 / 2; in hmac_drbg_reseed_core()
172 seed, ctx->entropy_len ) ) != 0 ) in hmac_drbg_reseed_core()
176 seedlen += ctx->entropy_len; in hmac_drbg_reseed_core()
191 ctx->entropy_len / 2 ) ) != 0 ) in hmac_drbg_reseed_core()
196 seedlen += ctx->entropy_len / 2; in hmac_drbg_reseed_core()
267 if( ctx->entropy_len == 0 ) in mbedtls_hmac_drbg_seed()
276 ctx->entropy_len = md_size <= 20 ? 16 : /* 160-bits hash -> 128 bits */ in mbedtls_hmac_drbg_seed()
304 ctx->entropy_len = len; in mbedtls_hmac_drbg_set_entropy_len()
Dentropy.c530 size_t entropy_len = 0; in mbedtls_entropy_source_self_test_gather() local
534 while( attempts > 0 && entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
536 if( ( ret = mbedtls_hardware_poll( NULL, buf + entropy_len, in mbedtls_entropy_source_self_test_gather()
537 buf_len - entropy_len, &olen ) ) != 0 ) in mbedtls_entropy_source_self_test_gather()
540 entropy_len += olen; in mbedtls_entropy_source_self_test_gather()
544 if( entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
/third_party/openssl/providers/implementations/rands/
Dtest_rng.c46 size_t entropy_len, entropy_pos, nonce_len; member
108 if (strength > t->strength || t->entropy_len - t->entropy_pos < outlen) in test_rng_generate()
191 t->entropy_len = size; in test_rng_set_ctx_params()
239 return t->entropy_len > max_len ? max_len : t->entropy_len; in test_rng_get_seed()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_pax_common.c32 const u8 *entropy, size_t entropy_len, in eap_pax_kdf() argument
52 len[1] = entropy_len; in eap_pax_kdf()
Deap_pax_common.h82 const u8 *entropy, size_t entropy_len,
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_pax_common.c32 const u8 *entropy, size_t entropy_len, in eap_pax_kdf() argument
52 len[1] = entropy_len; in eap_pax_kdf()
Deap_pax_common.h82 const u8 *entropy, size_t entropy_len,
/third_party/mbedtls/include/mbedtls/
Dhmac_drbg.h95 size_t MBEDTLS_PRIVATE(entropy_len); /*!< entropy bytes grabbed on each (re)seed */
Dctr_drbg.h187 size_t MBEDTLS_PRIVATE(entropy_len); /*!< The amount of entropy grabbed on each
/third_party/mbedtls/tests/suites/
Dtest_suite_hmac_drbg.function109 /* Finally, check setting entropy_len */
Dtest_suite_ctr_drbg.function300 /* Finally, check setting entropy_len */
/third_party/openssl/test/
Devp_test.c2402 size_t entropy_len, nonce_len, pers_len, addinA_len, addinB_len, member
2502 return parse_bin(value, &item->entropy, &item->entropy_len); in rand_test_parse()
2585 z, item->entropy_len); in rand_test_run()