Home
last modified time | relevance | path

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

/openthread-3.5.0/third_party/mbedtls/repo/library/
Dctr_drbg.c90 ctx->entropy_len = len; in mbedtls_ctr_drbg_set_entropy_len()
370 if( ctx->entropy_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT ) in mbedtls_ctr_drbg_reseed_internal()
372 if( nonce_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT - ctx->entropy_len ) in mbedtls_ctr_drbg_reseed_internal()
374 if( len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT - ctx->entropy_len - nonce_len ) in mbedtls_ctr_drbg_reseed_internal()
380 if( 0 != ctx->f_entropy( ctx->p_entropy, seed, ctx->entropy_len ) ) in mbedtls_ctr_drbg_reseed_internal()
384 seedlen += ctx->entropy_len; in mbedtls_ctr_drbg_reseed_internal()
428 static size_t good_nonce_len( size_t entropy_len ) in good_nonce_len() argument
430 if( entropy_len >= MBEDTLS_CTR_DRBG_KEYSIZE * 3 / 2 ) in good_nonce_len()
433 return( ( entropy_len + 1 ) / 2 ); in good_nonce_len()
469 if( ctx->entropy_len == 0 ) in mbedtls_ctr_drbg_seed()
[all …]
Dhmac_drbg.c165 total_entropy_len = ctx->entropy_len; in hmac_drbg_reseed_core()
167 total_entropy_len = ctx->entropy_len * 3 / 2; in hmac_drbg_reseed_core()
181 seed, ctx->entropy_len ) ) != 0 ) in hmac_drbg_reseed_core()
185 seedlen += ctx->entropy_len; in hmac_drbg_reseed_core()
200 ctx->entropy_len / 2 ) ) != 0 ) in hmac_drbg_reseed_core()
205 seedlen += ctx->entropy_len / 2; in hmac_drbg_reseed_core()
276 if( ctx->entropy_len == 0 ) in mbedtls_hmac_drbg_seed()
285 ctx->entropy_len = md_size <= 20 ? 16 : /* 160-bits hash -> 128 bits */ in mbedtls_hmac_drbg_seed()
313 ctx->entropy_len = len; in mbedtls_hmac_drbg_set_entropy_len()
Dentropy.c562 size_t entropy_len = 0; in mbedtls_entropy_source_self_test_gather() local
566 while( attempts > 0 && entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
568 if( ( ret = mbedtls_hardware_poll( NULL, buf + entropy_len, in mbedtls_entropy_source_self_test_gather()
569 buf_len - entropy_len, &olen ) ) != 0 ) in mbedtls_entropy_source_self_test_gather()
572 entropy_len += olen; in mbedtls_entropy_source_self_test_gather()
576 if( entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
/openthread-3.5.0/third_party/mbedtls/repo/include/mbedtls/
Dhmac_drbg.h98 size_t entropy_len; /*!< entropy bytes grabbed on each (re)seed */ member
Dctr_drbg.h190 size_t entropy_len; /*!< The amount of entropy grabbed on each member
/openthread-3.5.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_hmac_drbg.function109 /* Finally, check setting entropy_len */
Dtest_suite_ctr_drbg.function300 /* Finally, check setting entropy_len */