Home
last modified time | relevance | path

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

/third_party/mbedtls/tests/suites/
Dtest_suite_entropy.function69 static unsigned char buffer_seed[MBEDTLS_ENTROPY_BLOCK_SIZE];
73 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
76 memcpy( buf, buffer_seed, MBEDTLS_ENTROPY_BLOCK_SIZE );
82 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
85 memcpy( buffer_seed, buf, MBEDTLS_ENTROPY_BLOCK_SIZE );
96 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
102 if( fwrite( buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f ) !=
103 MBEDTLS_ENTROPY_BLOCK_SIZE )
115 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
121 if( fread( buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f ) !=
[all …]
Dtest_suite_psa_crypto_init.data32 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:0:PSA_ERROR_INSUFFICIENT_ENTROPY
35 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:-1:PSA_ERROR_IN…
39 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:ENTROPY_NONCE_LEN - 1:-1:-1:-1:PSA_ERROR_INSUFFICIEN…
43 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
47 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:1:-1:-1:PSA_SUCCESS
51 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:MBEDTLS_ENTROPY_BLOCK…
54 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK…
60 entropy_from_nv_seed:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
Dtest_suite_entropy.data56 entropy_calls:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:…
59 …ropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:1
62 …alls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
65 …ropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:1:MBEDTLS_ENTROPY_BLOCK_SIZE
68 …NTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_BLOCK_SIZE+1:MBEDTLS_ENTROPY_BLOC…
71 …OPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:(MBEDTLS_ENTROPY_BL…
Dtest_suite_psa_crypto_entropy.data40 PSA validate entropy injection: bad, too small using MBEDTLS_ENTROPY_BLOCK_SIZE
41 validate_entropy_seed_injection:MBEDTLS_ENTROPY_BLOCK_SIZE-1:PSA_ERROR_INVALID_ARGUMENT:MBEDTLS_PSA…
Dtest_suite_psa_crypto_init.function11 MAX(MBEDTLS_ENTROPY_MIN_PLATFORM, MBEDTLS_ENTROPY_BLOCK_SIZE)
98 MBEDTLS_ENTROPY_BLOCK_SIZE,
Dtest_suite_psa_crypto_entropy.function11 …e MBEDTLS_PSA_INJECT_ENTROPY_MIN_SIZE MAX(MBEDTLS_ENTROPY_MIN_PLATFORM, MBEDTLS_ENTROPY_BLOCK_SIZE)
/third_party/mbedtls/library/
Dentropy.c83 MBEDTLS_ENTROPY_BLOCK_SIZE, in mbedtls_entropy_init()
154 unsigned char tmp[MBEDTLS_ENTROPY_BLOCK_SIZE]; in entropy_update()
159 if( use_len > MBEDTLS_ENTROPY_BLOCK_SIZE ) in entropy_update()
169 use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in entropy_update()
303 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_func()
305 if( len > MBEDTLS_ENTROPY_BLOCK_SIZE ) in mbedtls_entropy_func()
349 while( ! thresholds_reached || strong_size < MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_entropy_func()
351 memset( buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_entropy_func()
370 MBEDTLS_ENTROPY_BLOCK_SIZE ) ) != 0 ) in mbedtls_entropy_func()
376 if( ( ret = mbedtls_sha512( buf, MBEDTLS_ENTROPY_BLOCK_SIZE, in mbedtls_entropy_func()
[all …]
Dentropy_poll.c218 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_nv_seed_poll()
219 size_t use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in mbedtls_nv_seed_poll()
222 memset( buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_nv_seed_poll()
224 if( mbedtls_nv_seed_read( buf, MBEDTLS_ENTROPY_BLOCK_SIZE ) < 0 ) in mbedtls_nv_seed_poll()
Dpsa_crypto.c5546 MBEDTLS_ENTROPY_BLOCK_SIZE, in mbedtls_psa_random_init()
5662 ( seed_size < MBEDTLS_ENTROPY_BLOCK_SIZE ) ) || in mbedtls_psa_inject_entropy()
/third_party/mbedtls/programs/test/
Dselftest.c195 unsigned char seed_value[MBEDTLS_ENTROPY_BLOCK_SIZE]; in create_entropy_seed_file()
200 MBEDTLS_ENTROPY_BLOCK_SIZE ); in create_entropy_seed_file()
206 MBEDTLS_ENTROPY_BLOCK_SIZE, in create_entropy_seed_file()
211 if( MBEDTLS_ENTROPY_BLOCK_SIZE != output_len ) in create_entropy_seed_file()
214 mbedtls_platform_std_nv_seed_write( seed_value, MBEDTLS_ENTROPY_BLOCK_SIZE ); in create_entropy_seed_file()
/third_party/mbedtls/include/mbedtls/
Dentropy.h75 #define MBEDTLS_ENTROPY_BLOCK_SIZE 64 /**< Block size of entropy accumulator (SHA-512) */ macro
77 #define MBEDTLS_ENTROPY_BLOCK_SIZE 32 /**< Block size of entropy accumulator (SHA-256) */ macro
/third_party/mbedtls/programs/random/
Dgen_entropy.c55 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in main()
/third_party/mbedtls/
DChangeLog1268 MBEDTLS_ENTROPY_BLOCK_SIZE bytes or more from strong sources. In the