Searched refs:entropy_len (Results 1 – 7 of 7) sorted by relevance
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()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() argument417 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()457 ctx->entropy_len = MBEDTLS_CTR_DRBG_ENTROPY_LEN; in mbedtls_ctr_drbg_seed()[all …]
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()
530 size_t entropy_len = 0; in mbedtls_entropy_source_self_test_gather() local534 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()
95 size_t MBEDTLS_PRIVATE(entropy_len); /*!< entropy bytes grabbed on each (re)seed */
187 size_t MBEDTLS_PRIVATE(entropy_len); /*!< The amount of entropy grabbed on each
109 /* Finally, check setting entropy_len */
300 /* Finally, check setting entropy_len */
Completed in 9 milliseconds