cosmopolitan/third_party/mbedtls/test/test_suite_entropy.datax
2022-07-21 09:20:59 -07:00

89 lines
1.9 KiB
Text

Entropy init-free-free
0:int:0
Entropy init-free-init-free
0:int:1
Create NV seed_file
8
Entropy write/update seed file: good
1:char*:"o/tmp/mbedtls_test_suite_entropy_seed":int:0
Entropy write/update seed file: nonexistent
1:char*:"o/tmp/no_such_dir/file":exp:0
Entropy no sources
2
Entropy too many sources
3
Entropy output length: 0
4:int:0:int:0
Entropy output length: 1
4:int:1:int:0
Entropy output length: 2
4:int:2:int:0
Entropy output length: 31
4:int:31:int:0
Entropy output length: 65 > BLOCK_SIZE
4:int:65:exp:1
Entropy failing source
5:char*:"/zip/third_party/mbedtls/test/data/entropy_seed"
Entropy threshold: 16=2*8
6:int:16:int:2:int:8
Entropy threshold: 32=1*32
6:int:32:int:1:int:32
Entropy threshold: 0* never reaches the threshold
6:int:16:int:0:exp:1
Entropy threshold: 1024 never reached
6:int:1024:int:1:exp:1
Entropy calls: no strong
7:exp:2:exp:2:int:1:exp:3:exp:4
Entropy calls: 1 strong, 1*BLOCK_SIZE
7:exp:5:exp:2:int:1:exp:3:int:1
Entropy calls: 1 strong, 2*(BLOCK_SIZE/2)
7:exp:5:exp:2:int:1:exp:6:int:2
Entropy calls: 1 strong, BLOCK_SIZE*1
7:exp:5:exp:2:int:1:int:1:exp:3
Entropy calls: 1 strong, 2*BLOCK_SIZE to reach threshold
7:exp:5:exp:2:exp:7:exp:3:int:2
Entropy calls: 2 strong, BLOCK_SIZE/2 each
7:exp:5:exp:2:exp:6:exp:6:int:2
Check NV seed standard IO
9
Check NV seed manually #1
10:hex:"00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF"
Check NV seed manually #2
10:hex:"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Check NV seed manually #3
10:hex:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
Entropy self test
depends_on:0
11:int:0
Entropy self test (MBEDTLS_TEST_NULL_ENTROPY)
depends_on:1
11:int:1