blob: 7460d74b86986458df4df0918d3226c73930dcda [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
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020010Entropy too many sources
11entropy_too_many_sources:
12
Gilles Peskinec34b8392019-10-08 14:21:18 +020013Entropy output length: 0
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020014entropy_func_len:0:0
15
Gilles Peskinec34b8392019-10-08 14:21:18 +020016Entropy output length: 1
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020017entropy_func_len:1:0
18
Gilles Peskinec34b8392019-10-08 14:21:18 +020019Entropy output length: 2
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020020entropy_func_len:2:0
21
Gilles Peskinec34b8392019-10-08 14:21:18 +020022Entropy output length: 31
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020023entropy_func_len:31:0
24
Gilles Peskinec34b8392019-10-08 14:21:18 +020025Entropy output length: 65 > BLOCK_SIZE
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020026entropy_func_len:65:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020027
28Entropy failing source
29entropy_source_fail:"data_files/entropy_seed"
30
Gilles Peskinec34b8392019-10-08 14:21:18 +020031Entropy threshold: 16=2*8
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020032entropy_threshold:16:2:8
33
Gilles Peskinec34b8392019-10-08 14:21:18 +020034Entropy threshold: 32=1*32
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020035entropy_threshold:32:1:32
36
Gilles Peskinec34b8392019-10-08 14:21:18 +020037Entropy threshold: 0* never reaches the threshold
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020038entropy_threshold:16:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020039
Gilles Peskinec34b8392019-10-08 14:21:18 +020040Entropy threshold: 1024 never reached
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020041entropy_threshold:1024:1:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
Manuel Pégourié-Gonnardc7c56b22014-05-30 11:42:01 +020042
Paul Bakkerffbfb4c2016-06-01 15:36:18 +010043Check NV seed standard IO
44entropy_nv_seed_std_io:
45
46Check NV seed manually #1
47entropy_nv_seed:"00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF"
48
49Check NV seed manually #2
50entropy_nv_seed:"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
51
52Check NV seed manually #3
53entropy_nv_seed:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
54
Hanno Becker47deec42017-07-24 12:27:09 +010055Entropy self test
56depends_on:!MBEDTLS_TEST_NULL_ENTROPY
Simon Butcherb7f45c52016-09-15 18:42:26 +010057entropy_selftest:0
58
59Entropy self test (MBEDTLS_TEST_NULL_ENTROPY)
60depends_on:MBEDTLS_TEST_NULL_ENTROPY
61entropy_selftest:1