Searched refs:MBEDTLS_ENTROPY_BLOCK_SIZE (Results 1 – 13 of 13) sorted by relevance
/third_party/mbedtls/tests/suites/ |
D | test_suite_entropy.function | 69 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 …]
|
D | test_suite_psa_crypto_init.data | 32 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
|
D | test_suite_entropy.data | 56 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…
|
D | test_suite_psa_crypto_entropy.data | 40 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…
|
D | test_suite_psa_crypto_init.function | 11 MAX(MBEDTLS_ENTROPY_MIN_PLATFORM, MBEDTLS_ENTROPY_BLOCK_SIZE) 98 MBEDTLS_ENTROPY_BLOCK_SIZE,
|
D | test_suite_psa_crypto_entropy.function | 11 …e MBEDTLS_PSA_INJECT_ENTROPY_MIN_SIZE MAX(MBEDTLS_ENTROPY_MIN_PLATFORM, MBEDTLS_ENTROPY_BLOCK_SIZE)
|
/third_party/mbedtls/library/ |
D | entropy.c | 83 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 …]
|
D | entropy_poll.c | 218 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()
|
D | psa_crypto.c | 5546 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/ |
D | selftest.c | 195 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/ |
D | entropy.h | 75 #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/ |
D | gen_entropy.c | 55 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in main()
|
/third_party/mbedtls/ |
D | ChangeLog | 1268 MBEDTLS_ENTROPY_BLOCK_SIZE bytes or more from strong sources. In the
|