blob: 0b30bb8a5a4bb6fd75eb097f3b59096aca1e800e [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
Victor Krasnoshchokb3129ba2020-08-29 22:54:37 +030016Entropy write/update seed file: base NV seed file
17entropy_write_base_seed_file:0
18
Gilles Peskine7f246512019-10-08 14:51:49 +020019Entropy no sources
20entropy_no_sources:
21
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020022Entropy too many sources
23entropy_too_many_sources:
24
Gilles Peskinec34b8392019-10-08 14:21:18 +020025Entropy output length: 0
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020026entropy_func_len:0:0
27
Gilles Peskinec34b8392019-10-08 14:21:18 +020028Entropy output length: 1
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020029entropy_func_len:1:0
30
Gilles Peskinec34b8392019-10-08 14:21:18 +020031Entropy output length: 2
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020032entropy_func_len:2:0
33
Gilles Peskinec34b8392019-10-08 14:21:18 +020034Entropy output length: 31
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020035entropy_func_len:31:0
36
Gilles Peskinec34b8392019-10-08 14:21:18 +020037Entropy output length: 65 > BLOCK_SIZE
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020038entropy_func_len:65:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020039
40Entropy failing source
41entropy_source_fail:"data_files/entropy_seed"
42
Gilles Peskinec34b8392019-10-08 14:21:18 +020043Entropy threshold: 16=2*8
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020044entropy_threshold:16:2:8
45
Gilles Peskinec34b8392019-10-08 14:21:18 +020046Entropy threshold: 32=1*32
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020047entropy_threshold:32:1:32
48
Gilles Peskinec34b8392019-10-08 14:21:18 +020049Entropy threshold: 0* never reaches the threshold
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020050entropy_threshold:16:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020051
Gilles Peskinec34b8392019-10-08 14:21:18 +020052Entropy threshold: 1024 never reached
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020053entropy_threshold:1024:1:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020054
Gilles Peskine65fc0682019-10-08 15:01:34 +020055Entropy calls: no strong
56entropy_calls:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE
57
58Entropy calls: 1 strong, 1*BLOCK_SIZE
59entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:1
60
61Entropy calls: 1 strong, 2*(BLOCK_SIZE/2)
62entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
63
64Entropy calls: 1 strong, BLOCK_SIZE*1
65entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:1:MBEDTLS_ENTROPY_BLOCK_SIZE
66
67Entropy calls: 1 strong, 2*BLOCK_SIZE to reach threshold
68entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_BLOCK_SIZE+1:MBEDTLS_ENTROPY_BLOCK_SIZE:2
69
70Entropy calls: 2 strong, BLOCK_SIZE/2 each
71entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
72
Paul Bakkerffbfb4c2016-06-01 15:36:18 +010073Check NV seed standard IO
74entropy_nv_seed_std_io:
75
76Check NV seed manually #1
77entropy_nv_seed:"00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF"
78
79Check NV seed manually #2
80entropy_nv_seed:"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
81
82Check NV seed manually #3
83entropy_nv_seed:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
84
Hanno Becker47deec42017-07-24 12:27:09 +010085Entropy self test
Simon Butcherb7f45c52016-09-15 18:42:26 +010086entropy_selftest:0