quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test_suite_entropy.data (2781B)


      1 Entropy init-free-free
      2 entropy_init_free:0
      3 
      4 Entropy init-free-init-free
      5 entropy_init_free:1
      6 
      7 Create NV seed_file
      8 nv_seed_file_create:
      9 
     10 Entropy write/update seed file: good
     11 entropy_seed_file:"../framework/data_files/entropy_seed":0
     12 
     13 Entropy write/update seed file: nonexistent
     14 entropy_seed_file:"no_such_dir/file":MBEDTLS_ERR_ENTROPY_FILE_IO_ERROR
     15 
     16 Entropy write/update seed file: base NV seed file
     17 entropy_write_base_seed_file:0
     18 
     19 Entropy no sources
     20 entropy_no_sources:
     21 
     22 Entropy too many sources
     23 entropy_too_many_sources:
     24 
     25 Entropy output length: 0
     26 entropy_func_len:0:0
     27 
     28 Entropy output length: 1
     29 entropy_func_len:1:0
     30 
     31 Entropy output length: 2
     32 entropy_func_len:2:0
     33 
     34 Entropy output length: 31
     35 entropy_func_len:31:0
     36 
     37 Entropy output length: 65 > BLOCK_SIZE
     38 entropy_func_len:65:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
     39 
     40 Entropy failing source
     41 entropy_source_fail:"../framework/data_files/entropy_seed"
     42 
     43 Entropy threshold: 16=2*8
     44 entropy_threshold:16:2:8
     45 
     46 Entropy threshold: 32=1*32
     47 entropy_threshold:32:1:32
     48 
     49 Entropy threshold: 0* never reaches the threshold
     50 entropy_threshold:16:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
     51 
     52 Entropy threshold: 1024 never reached
     53 entropy_threshold:1024:1:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
     54 
     55 Entropy calls: no strong
     56 entropy_calls:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE
     57 
     58 Entropy calls: 1 strong, 1*BLOCK_SIZE
     59 entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:1
     60 
     61 Entropy calls: 1 strong, 2*(BLOCK_SIZE/2)
     62 entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
     63 
     64 Entropy calls: 1 strong, BLOCK_SIZE*1
     65 entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:1:MBEDTLS_ENTROPY_BLOCK_SIZE
     66 
     67 Entropy calls: 1 strong, 2*BLOCK_SIZE to reach threshold
     68 entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_BLOCK_SIZE+1:MBEDTLS_ENTROPY_BLOCK_SIZE:2
     69 
     70 Entropy calls: 2 strong, BLOCK_SIZE/2 each
     71 entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
     72 
     73 Check NV seed standard IO
     74 entropy_nv_seed_std_io:
     75 
     76 Check NV seed manually #1
     77 entropy_nv_seed:"00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF"
     78 
     79 Check NV seed manually #2
     80 entropy_nv_seed:"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
     81 
     82 Check NV seed manually #3
     83 entropy_nv_seed:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
     84 
     85 Entropy self test
     86 entropy_selftest:0