Home
last modified time | relevance | path

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

/net-tools-2.7.6/mbedtls-2.4.0/library/
Dhmac_drbg.c134 ctx->entropy_len + len > MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT ) in mbedtls_hmac_drbg_reseed()
142 if( ctx->f_entropy( ctx->p_entropy, seed, ctx->entropy_len ) != 0 ) in mbedtls_hmac_drbg_reseed()
145 seedlen = ctx->entropy_len; in mbedtls_hmac_drbg_reseed()
175 size_t entropy_len, md_size; in mbedtls_hmac_drbg_seed() local
202 entropy_len = md_size <= 20 ? 16 : /* 160-bits hash -> 128 bits */ in mbedtls_hmac_drbg_seed()
210 ctx->entropy_len = entropy_len * 3 / 2; in mbedtls_hmac_drbg_seed()
215 ctx->entropy_len = entropy_len; in mbedtls_hmac_drbg_seed()
234 ctx->entropy_len = len; in mbedtls_hmac_drbg_set_entropy_len()
Dctr_drbg.c79 size_t entropy_len ) in mbedtls_ctr_drbg_seed_entropy_len() argument
91 ctx->entropy_len = entropy_len; in mbedtls_ctr_drbg_seed_entropy_len()
134 ctx->entropy_len = len; in mbedtls_ctr_drbg_set_entropy_len()
293 if( ctx->entropy_len + len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT ) in mbedtls_ctr_drbg_reseed()
302 ctx->entropy_len ) ) in mbedtls_ctr_drbg_reseed()
307 seedlen += ctx->entropy_len; in mbedtls_ctr_drbg_reseed()
Dentropy.c480 size_t entropy_len = 0; in mbedtls_entropy_source_self_test_gather() local
484 while( attempts > 0 && entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
486 if( ( ret = mbedtls_hardware_poll( NULL, buf + entropy_len, in mbedtls_entropy_source_self_test_gather()
487 buf_len - entropy_len, &olen ) ) != 0 ) in mbedtls_entropy_source_self_test_gather()
490 entropy_len += olen; in mbedtls_entropy_source_self_test_gather()
494 if( entropy_len < buf_len ) in mbedtls_entropy_source_self_test_gather()
/net-tools-2.7.6/mbedtls-2.4.0/include/mbedtls/
Dhmac_drbg.h85 size_t entropy_len; /*!< entropy bytes grabbed on each (re)seed */ member
Dctr_drbg.h93 size_t entropy_len; /*!< amount of entropy grabbed on each member
/net-tools-2.7.6/mbedtls-2.4.0/tests/suites/
Dtest_suite_ctr_drbg.function184 /* Finally, check setting entropy_len */
Dtest_suite_hmac_drbg.function95 /* Finally, check setting entropy_len */