Home
last modified time | relevance | path

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

/net-tools-3.7.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_entropy.function58 static unsigned char buffer_seed[MBEDTLS_ENTROPY_BLOCK_SIZE];
62 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
65 memcpy( buf, buffer_seed, MBEDTLS_ENTROPY_BLOCK_SIZE );
71 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
74 memcpy( buffer_seed, buf, MBEDTLS_ENTROPY_BLOCK_SIZE );
85 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
91 if( fwrite( buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f ) !=
92 MBEDTLS_ENTROPY_BLOCK_SIZE )
104 if( buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE )
110 if( fread( buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f ) !=
[all …]
/net-tools-3.7.0/mbedtls-2.4.0/library/
Dentropy.c114 MBEDTLS_ENTROPY_BLOCK_SIZE, in mbedtls_entropy_init()
172 unsigned char tmp[MBEDTLS_ENTROPY_BLOCK_SIZE]; in entropy_update()
176 if( use_len > MBEDTLS_ENTROPY_BLOCK_SIZE ) in entropy_update()
184 use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in entropy_update()
290 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_func()
292 if( len > MBEDTLS_ENTROPY_BLOCK_SIZE ) in mbedtls_entropy_func()
333 memset( buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_entropy_func()
343 mbedtls_sha512_update( &ctx->accumulator, buf, MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_entropy_func()
348 mbedtls_sha512( buf, MBEDTLS_ENTROPY_BLOCK_SIZE, buf, 0 ); in mbedtls_entropy_func()
357 mbedtls_sha256_update( &ctx->accumulator, buf, MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_entropy_func()
[all …]
Dentropy_poll.c249 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_nv_seed_poll()
250 size_t use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in mbedtls_nv_seed_poll()
253 memset( buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_nv_seed_poll()
255 if( mbedtls_nv_seed_read( buf, MBEDTLS_ENTROPY_BLOCK_SIZE ) < 0 ) in mbedtls_nv_seed_poll()
/net-tools-3.7.0/mbedtls-2.4.0/programs/test/
Dselftest.c116 unsigned char seed_value[MBEDTLS_ENTROPY_BLOCK_SIZE]; in create_entropy_seed_file()
121 MBEDTLS_ENTROPY_BLOCK_SIZE ); in create_entropy_seed_file()
127 MBEDTLS_ENTROPY_BLOCK_SIZE, in create_entropy_seed_file()
132 if( MBEDTLS_ENTROPY_BLOCK_SIZE != output_len ) in create_entropy_seed_file()
135 mbedtls_platform_std_nv_seed_write( seed_value, MBEDTLS_ENTROPY_BLOCK_SIZE ); in create_entropy_seed_file()
/net-tools-3.7.0/mbedtls-2.4.0/include/mbedtls/
Dentropy.h77 #define MBEDTLS_ENTROPY_BLOCK_SIZE 64 /**< Block size of entropy accumulator (SHA-512) */ macro
79 #define MBEDTLS_ENTROPY_BLOCK_SIZE 32 /**< Block size of entropy accumulator (SHA-256) */ macro
Dcompat-1.3.h721 #define ENTROPY_BLOCK_SIZE MBEDTLS_ENTROPY_BLOCK_SIZE
/net-tools-3.7.0/mbedtls-2.4.0/programs/random/
Dgen_entropy.c54 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in main()
/net-tools-3.7.0/mbedtls-2.4.0/scripts/data_files/
Drename-1.3-2.0.txt61 ENTROPY_BLOCK_SIZE MBEDTLS_ENTROPY_BLOCK_SIZE