blob: 2ce01fabda7ad766cb7506cc196c2930cedda90d [file] [log] [blame]
Gilles Peskine3d979f72021-02-22 21:24:02 +01001Entropy init-free-free
2entropy_init_free:0
3
4Entropy init-free-init-free
5entropy_init_free:1
6
Paul Bakkerffbfb4c2016-06-01 15:36:18 +01007Create NV seed_file
8nv_seed_file_create:
9
Gilles Peskinec34b8392019-10-08 14:21:18 +020010Entropy write/update seed file: good
Manuel Pégourié-Gonnard2c25eb02014-05-30 10:38:18 +020011entropy_seed_file:"data_files/entropy_seed":0
12
Gilles Peskinec34b8392019-10-08 14:21:18 +020013Entropy write/update seed file: nonexistent
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020014entropy_seed_file:"no_such_dir/file":MBEDTLS_ERR_ENTROPY_FILE_IO_ERROR
Manuel Pégourié-Gonnard2c25eb02014-05-30 10:38:18 +020015
Gilles Peskine7f246512019-10-08 14:51:49 +020016Entropy no sources
17entropy_no_sources:
18
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020019Entropy too many sources
20entropy_too_many_sources:
21
Gilles Peskinec34b8392019-10-08 14:21:18 +020022Entropy output length: 0
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020023entropy_func_len:0:0
24
Gilles Peskinec34b8392019-10-08 14:21:18 +020025Entropy output length: 1
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020026entropy_func_len:1:0
27
Gilles Peskinec34b8392019-10-08 14:21:18 +020028Entropy output length: 2
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020029entropy_func_len:2:0
30
Gilles Peskinec34b8392019-10-08 14:21:18 +020031Entropy output length: 31
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020032entropy_func_len:31:0
33
Gilles Peskinec34b8392019-10-08 14:21:18 +020034Entropy output length: 65 > BLOCK_SIZE
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020035entropy_func_len:65:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020036
37Entropy failing source
38entropy_source_fail:"data_files/entropy_seed"
39
Gilles Peskinec34b8392019-10-08 14:21:18 +020040Entropy threshold: 16=2*8
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020041entropy_threshold:16:2:8
42
Gilles Peskinec34b8392019-10-08 14:21:18 +020043Entropy threshold: 32=1*32
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020044entropy_threshold:32:1:32
45
Gilles Peskinec34b8392019-10-08 14:21:18 +020046Entropy threshold: 0* never reaches the threshold
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020047entropy_threshold:16:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020048
Gilles Peskinec34b8392019-10-08 14:21:18 +020049Entropy threshold: 1024 never reached
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020050entropy_threshold:1024:1:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020051
Gilles Peskine65fc0682019-10-08 15:01:34 +020052Entropy calls: no strong
53entropy_calls:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE
54
55Entropy calls: 1 strong, 1*BLOCK_SIZE
56entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:1
57
58Entropy calls: 1 strong, 2*(BLOCK_SIZE/2)
59entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
60
61Entropy calls: 1 strong, BLOCK_SIZE*1
62entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:1:MBEDTLS_ENTROPY_BLOCK_SIZE
63
64Entropy calls: 1 strong, 2*BLOCK_SIZE to reach threshold
65entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_BLOCK_SIZE+1:MBEDTLS_ENTROPY_BLOCK_SIZE:2
66
67Entropy calls: 2 strong, BLOCK_SIZE/2 each
68entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
69
Paul Bakkerffbfb4c2016-06-01 15:36:18 +010070Check NV seed standard IO
71entropy_nv_seed_std_io:
72
73Check NV seed manually #1
74entropy_nv_seed:"00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF"
75
76Check NV seed manually #2
77entropy_nv_seed:"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
78
79Check NV seed manually #3
80entropy_nv_seed:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
81
Hanno Becker47deec42017-07-24 12:27:09 +010082Entropy self test
83depends_on:!MBEDTLS_TEST_NULL_ENTROPY
Simon Butcherb7f45c52016-09-15 18:42:26 +010084entropy_selftest:0
85
86Entropy self test (MBEDTLS_TEST_NULL_ENTROPY)
87depends_on:MBEDTLS_TEST_NULL_ENTROPY
88entropy_selftest:1