Home
last modified time | relevance | path

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

/optee_os/lib/libmbedtls/mbedtls/library/
A Dctr_drbg.c90 ctx->entropy_len = len; in mbedtls_ctr_drbg_set_entropy_len()
373 if( ctx->entropy_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT ) in mbedtls_ctr_drbg_reseed_internal()
375 if( nonce_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT - ctx->entropy_len ) in mbedtls_ctr_drbg_reseed_internal()
383 if( 0 != ctx->f_entropy( ctx->p_entropy, seed, ctx->entropy_len ) ) in mbedtls_ctr_drbg_reseed_internal()
387 seedlen += ctx->entropy_len; in mbedtls_ctr_drbg_reseed_internal()
431 static size_t good_nonce_len( size_t entropy_len ) in good_nonce_len() argument
433 if( entropy_len >= MBEDTLS_CTR_DRBG_KEYSIZE * 3 / 2 ) in good_nonce_len()
436 return( ( entropy_len + 1 ) / 2 ); in good_nonce_len()
472 if( ctx->entropy_len == 0 ) in mbedtls_ctr_drbg_seed()
473 ctx->entropy_len = MBEDTLS_CTR_DRBG_ENTROPY_LEN; in mbedtls_ctr_drbg_seed()
[all …]
A 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()
A 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()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dhmac_drbg.h94 size_t entropy_len; /*!< entropy bytes grabbed on each (re)seed */ member
A Dctr_drbg.h186 size_t entropy_len; /*!< The amount of entropy grabbed on each member
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dhmac_drbg.h94 size_t entropy_len; /*!< entropy bytes grabbed on each (re)seed */ member
A Dctr_drbg.h186 size_t entropy_len; /*!< The amount of entropy grabbed on each member
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dhmac_drbg.h94 size_t entropy_len; /*!< entropy bytes grabbed on each (re)seed */ member
A Dctr_drbg.h186 size_t entropy_len; /*!< The amount of entropy grabbed on each member
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dhmac_drbg.h94 size_t entropy_len; /*!< entropy bytes grabbed on each (re)seed */ member
A Dctr_drbg.h186 size_t entropy_len; /*!< The amount of entropy grabbed on each member
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dhmac_drbg.h94 size_t entropy_len; /*!< entropy bytes grabbed on each (re)seed */ member
A Dctr_drbg.h186 size_t entropy_len; /*!< The amount of entropy grabbed on each member

Completed in 16 milliseconds