Paul Bakker | ffbfb4c | 2016-06-01 15:36:18 +0100 | [diff] [blame] | 1 | Create NV seed_file |
| 2 | nv_seed_file_create: |
| 3 | |
Gilles Peskine | c34b839 | 2019-10-08 14:21:18 +0200 | [diff] [blame] | 4 | Entropy write/update seed file: good |
Manuel Pégourié-Gonnard | 2c25eb0 | 2014-05-30 10:38:18 +0200 | [diff] [blame] | 5 | entropy_seed_file:"data_files/entropy_seed":0 |
| 6 | |
Gilles Peskine | c34b839 | 2019-10-08 14:21:18 +0200 | [diff] [blame] | 7 | Entropy write/update seed file: nonexistent |
Manuel Pégourié-Gonnard | 2cf5a7c | 2015-04-08 12:49:31 +0200 | [diff] [blame] | 8 | entropy_seed_file:"no_such_dir/file":MBEDTLS_ERR_ENTROPY_FILE_IO_ERROR |
Manuel Pégourié-Gonnard | 2c25eb0 | 2014-05-30 10:38:18 +0200 | [diff] [blame] | 9 | |
Gilles Peskine | 7f24651 | 2019-10-08 14:51:49 +0200 | [diff] [blame] | 10 | Entropy no sources |
| 11 | entropy_no_sources: |
| 12 | |
Manuel Pégourié-Gonnard | c7c56b2 | 2014-05-30 11:42:01 +0200 | [diff] [blame] | 13 | Entropy too many sources |
| 14 | entropy_too_many_sources: |
| 15 | |
Gilles Peskine | c34b839 | 2019-10-08 14:21:18 +0200 | [diff] [blame] | 16 | Entropy output length: 0 |
Manuel Pégourié-Gonnard | c7c56b2 | 2014-05-30 11:42:01 +0200 | [diff] [blame] | 17 | entropy_func_len:0:0 |
| 18 | |
Gilles Peskine | c34b839 | 2019-10-08 14:21:18 +0200 | [diff] [blame] | 19 | Entropy output length: 1 |
Manuel Pégourié-Gonnard | c7c56b2 | 2014-05-30 11:42:01 +0200 | [diff] [blame] | 20 | entropy_func_len:1:0 |
| 21 | |
Gilles Peskine | c34b839 | 2019-10-08 14:21:18 +0200 | [diff] [blame] | 22 | Entropy output length: 2 |
Manuel Pégourié-Gonnard | c7c56b2 | 2014-05-30 11:42:01 +0200 | [diff] [blame] | 23 | entropy_func_len:2:0 |
| 24 | |
Gilles Peskine | c34b839 | 2019-10-08 14:21:18 +0200 | [diff] [blame] | 25 | Entropy output length: 31 |
Manuel Pégourié-Gonnard | c7c56b2 | 2014-05-30 11:42:01 +0200 | [diff] [blame] | 26 | entropy_func_len:31:0 |
| 27 | |
Gilles Peskine | c34b839 | 2019-10-08 14:21:18 +0200 | [diff] [blame] | 28 | Entropy output length: 65 > BLOCK_SIZE |
Manuel Pégourié-Gonnard | 2cf5a7c | 2015-04-08 12:49:31 +0200 | [diff] [blame] | 29 | entropy_func_len:65:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED |
Manuel Pégourié-Gonnard | c7c56b2 | 2014-05-30 11:42:01 +0200 | [diff] [blame] | 30 | |
| 31 | Entropy failing source |
| 32 | entropy_source_fail:"data_files/entropy_seed" |
| 33 | |
Gilles Peskine | c34b839 | 2019-10-08 14:21:18 +0200 | [diff] [blame] | 34 | Entropy threshold: 16=2*8 |
Manuel Pégourié-Gonnard | c7c56b2 | 2014-05-30 11:42:01 +0200 | [diff] [blame] | 35 | entropy_threshold:16:2:8 |
| 36 | |
Gilles Peskine | c34b839 | 2019-10-08 14:21:18 +0200 | [diff] [blame] | 37 | Entropy threshold: 32=1*32 |
Manuel Pégourié-Gonnard | c7c56b2 | 2014-05-30 11:42:01 +0200 | [diff] [blame] | 38 | entropy_threshold:32:1:32 |
| 39 | |
Gilles Peskine | c34b839 | 2019-10-08 14:21:18 +0200 | [diff] [blame] | 40 | Entropy threshold: 0* never reaches the threshold |
Manuel Pégourié-Gonnard | 2cf5a7c | 2015-04-08 12:49:31 +0200 | [diff] [blame] | 41 | entropy_threshold:16:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED |
Manuel Pégourié-Gonnard | c7c56b2 | 2014-05-30 11:42:01 +0200 | [diff] [blame] | 42 | |
Gilles Peskine | c34b839 | 2019-10-08 14:21:18 +0200 | [diff] [blame] | 43 | Entropy threshold: 1024 never reached |
Manuel Pégourié-Gonnard | 2cf5a7c | 2015-04-08 12:49:31 +0200 | [diff] [blame] | 44 | entropy_threshold:1024:1:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED |
Manuel Pégourié-Gonnard | c7c56b2 | 2014-05-30 11:42:01 +0200 | [diff] [blame] | 45 | |
Gilles Peskine | 65fc068 | 2019-10-08 15:01:34 +0200 | [diff] [blame] | 46 | Entropy calls: no strong |
| 47 | entropy_calls:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE |
| 48 | |
| 49 | Entropy calls: 1 strong, 1*BLOCK_SIZE |
| 50 | entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:1 |
| 51 | |
| 52 | Entropy calls: 1 strong, 2*(BLOCK_SIZE/2) |
| 53 | entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2 |
| 54 | |
| 55 | Entropy calls: 1 strong, BLOCK_SIZE*1 |
| 56 | entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:1:MBEDTLS_ENTROPY_BLOCK_SIZE |
| 57 | |
| 58 | Entropy calls: 1 strong, 2*BLOCK_SIZE to reach threshold |
| 59 | entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_BLOCK_SIZE+1:MBEDTLS_ENTROPY_BLOCK_SIZE:2 |
| 60 | |
| 61 | Entropy calls: 2 strong, BLOCK_SIZE/2 each |
| 62 | entropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2 |
| 63 | |
Paul Bakker | ffbfb4c | 2016-06-01 15:36:18 +0100 | [diff] [blame] | 64 | Check NV seed standard IO |
| 65 | entropy_nv_seed_std_io: |
| 66 | |
| 67 | Check NV seed manually #1 |
| 68 | entropy_nv_seed:"00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF" |
| 69 | |
| 70 | Check NV seed manually #2 |
| 71 | entropy_nv_seed:"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" |
| 72 | |
| 73 | Check NV seed manually #3 |
| 74 | entropy_nv_seed:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" |
| 75 | |
Hanno Becker | 47deec4 | 2017-07-24 12:27:09 +0100 | [diff] [blame] | 76 | Entropy self test |
| 77 | depends_on:!MBEDTLS_TEST_NULL_ENTROPY |
Simon Butcher | b7f45c5 | 2016-09-15 18:42:26 +0100 | [diff] [blame] | 78 | entropy_selftest:0 |
| 79 | |
| 80 | Entropy self test (MBEDTLS_TEST_NULL_ENTROPY) |
| 81 | depends_on:MBEDTLS_TEST_NULL_ENTROPY |
| 82 | entropy_selftest:1 |