blob: bc077f8158252a1fbd5f19de65b27eebe2b498fb [file] [log] [blame]
Paul Bakkerffbfb4c2016-06-01 15:36:18 +01001Create NV seed_file
2nv_seed_file_create:
3
Gilles Peskinec34b8392019-10-08 14:21:18 +02004Entropy write/update seed file: good
Manuel Pégourié-Gonnard2c25eb02014-05-30 10:38:18 +02005entropy_seed_file:"data_files/entropy_seed":0
6
Gilles Peskinec34b8392019-10-08 14:21:18 +02007Entropy write/update seed file: nonexistent
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +02008entropy_seed_file:"no_such_dir/file":MBEDTLS_ERR_ENTROPY_FILE_IO_ERROR
Manuel Pégourié-Gonnard2c25eb02014-05-30 10:38:18 +02009
Victor Krasnoshchokb3129ba2020-08-29 22:54:37 +030010Entropy write/update seed file: base NV seed file
11entropy_write_base_seed_file:0
12
Gilles Peskine7f246512019-10-08 14:51:49 +020013Entropy no sources
14entropy_no_sources:
15
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020016Entropy too many sources
17entropy_too_many_sources:
18
Gilles Peskinec34b8392019-10-08 14:21:18 +020019Entropy output length: 0
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020020entropy_func_len:0:0
21
Gilles Peskinec34b8392019-10-08 14:21:18 +020022Entropy output length: 1
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020023entropy_func_len:1:0
24
Gilles Peskinec34b8392019-10-08 14:21:18 +020025Entropy output length: 2
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020026entropy_func_len:2:0
27
Gilles Peskinec34b8392019-10-08 14:21:18 +020028Entropy output length: 31
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020029entropy_func_len:31:0
30
Gilles Peskinec34b8392019-10-08 14:21:18 +020031Entropy output length: 65 > BLOCK_SIZE
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020032entropy_func_len:65:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020033
34Entropy failing source
35entropy_source_fail:"data_files/entropy_seed"
36
Gilles Peskinec34b8392019-10-08 14:21:18 +020037Entropy threshold: 16=2*8
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020038entropy_threshold:16:2:8
39
Gilles Peskinec34b8392019-10-08 14:21:18 +020040Entropy threshold: 32=1*32
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020041entropy_threshold:32:1:32
42
Gilles Peskinec34b8392019-10-08 14:21:18 +020043Entropy threshold: 0* never reaches the threshold
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020044entropy_threshold:16:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020045
Gilles Peskinec34b8392019-10-08 14:21:18 +020046Entropy threshold: 1024 never reached
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020047entropy_threshold:1024:1:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020048
Gilles Peskine65fc0682019-10-08 15:01:34 +020049Entropy calls: no strong
50entropy_calls:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE
51
52Entropy calls: 1 strong, 1*BLOCK_SIZE
53entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:1
54
55Entropy calls: 1 strong, 2*(BLOCK_SIZE/2)
56entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
57
58Entropy calls: 1 strong, BLOCK_SIZE*1
59entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:1:MBEDTLS_ENTROPY_BLOCK_SIZE
60
61Entropy calls: 1 strong, 2*BLOCK_SIZE to reach threshold
62entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_BLOCK_SIZE+1:MBEDTLS_ENTROPY_BLOCK_SIZE:2
63
64Entropy calls: 2 strong, BLOCK_SIZE/2 each
65entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
66
Paul Bakkerffbfb4c2016-06-01 15:36:18 +010067Check NV seed standard IO
68entropy_nv_seed_std_io:
69
70Check NV seed manually #1
71entropy_nv_seed:"00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF"
72
73Check NV seed manually #2
74entropy_nv_seed:"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
75
76Check NV seed manually #3
77entropy_nv_seed:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
78
Hanno Becker47deec42017-07-24 12:27:09 +010079Entropy self test
80depends_on:!MBEDTLS_TEST_NULL_ENTROPY
Simon Butcherb7f45c52016-09-15 18:42:26 +010081entropy_selftest:0
82
83Entropy self test (MBEDTLS_TEST_NULL_ENTROPY)
84depends_on:MBEDTLS_TEST_NULL_ENTROPY
85entropy_selftest:1