Searched refs:entropy_len (Results 1 – 13 of 13) sorted by relevance
/third_party/mbedtls/library/ |
D | ctr_drbg.c | 90 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 …]
|
D | hmac_drbg.c | 156 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()
|
D | entropy.c | 530 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/ |
D | test_rng.c | 46 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/ |
D | eap_pax_common.c | 32 const u8 *entropy, size_t entropy_len, in eap_pax_kdf() argument 52 len[1] = entropy_len; in eap_pax_kdf()
|
D | eap_pax_common.h | 82 const u8 *entropy, size_t entropy_len,
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/ |
D | eap_pax_common.c | 32 const u8 *entropy, size_t entropy_len, in eap_pax_kdf() argument 52 len[1] = entropy_len; in eap_pax_kdf()
|
D | eap_pax_common.h | 82 const u8 *entropy, size_t entropy_len,
|
/third_party/mbedtls/include/mbedtls/ |
D | hmac_drbg.h | 95 size_t MBEDTLS_PRIVATE(entropy_len); /*!< entropy bytes grabbed on each (re)seed */
|
D | ctr_drbg.h | 187 size_t MBEDTLS_PRIVATE(entropy_len); /*!< The amount of entropy grabbed on each
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_hmac_drbg.function | 109 /* Finally, check setting entropy_len */
|
D | test_suite_ctr_drbg.function | 300 /* Finally, check setting entropy_len */
|
/third_party/openssl/test/ |
D | evp_test.c | 2402 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()
|