Lines Matching refs:MBEDTLS_ENTROPY_BLOCK_SIZE

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()
391 MBEDTLS_ENTROPY_BLOCK_SIZE ) ) != 0 ) in mbedtls_entropy_func()
397 if( ( ret = mbedtls_sha256( buf, MBEDTLS_ENTROPY_BLOCK_SIZE, in mbedtls_entropy_func()
424 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_update_nv_seed()
427 if( ( ret = mbedtls_entropy_func( ctx, buf, MBEDTLS_ENTROPY_BLOCK_SIZE ) ) != 0 ) in mbedtls_entropy_update_nv_seed()
430 if( mbedtls_nv_seed_write( buf, MBEDTLS_ENTROPY_BLOCK_SIZE ) < 0 ) in mbedtls_entropy_update_nv_seed()
434 memset( buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_entropy_update_nv_seed()
435 ret = mbedtls_entropy_update_manual( ctx, buf, MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_entropy_update_nv_seed()
446 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_write_seed_file()
448 if( ( ret = mbedtls_entropy_func( ctx, buf, MBEDTLS_ENTROPY_BLOCK_SIZE ) ) != 0 ) in mbedtls_entropy_write_seed_file()
460 if( fwrite( buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f ) != MBEDTLS_ENTROPY_BLOCK_SIZE ) in mbedtls_entropy_write_seed_file()
632 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE] = { 0 }; in mbedtls_entropy_self_test()
633 unsigned char acc[MBEDTLS_ENTROPY_BLOCK_SIZE] = { 0 }; in mbedtls_entropy_self_test()