mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 04:48:58 +00:00
ffbfb4c24c
A standard 'test' that writes a seed file is added so that regular tests still can succeed. This is in lieu of a 'SUITE_PRE_CODE' kind of arrangement where a suite can run code before (and after) all other code runs. A test is added that checks if we can read and write the standard NV seed file A test is added that actually checks if the entropy and seed file values that are the result of just using the NV seed are the same as the manual calculation.
56 lines
1.4 KiB
Text
56 lines
1.4 KiB
Text
Create NV seed_file
|
|
nv_seed_file_create:
|
|
|
|
Entropy write/update seed file
|
|
entropy_seed_file:"data_files/entropy_seed":0
|
|
|
|
Entropy write/update seed file
|
|
entropy_seed_file:"no_such_dir/file":MBEDTLS_ERR_ENTROPY_FILE_IO_ERROR
|
|
|
|
Entropy too many sources
|
|
entropy_too_many_sources:
|
|
|
|
Entropy output length #1
|
|
entropy_func_len:0:0
|
|
|
|
Entropy output length #2
|
|
entropy_func_len:1:0
|
|
|
|
Entropy output length #3
|
|
entropy_func_len:2:0
|
|
|
|
Entropy output length #4
|
|
entropy_func_len:31:0
|
|
|
|
Entropy output length #5
|
|
entropy_func_len:65:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
|
|
|
|
Entropy failing source
|
|
entropy_source_fail:"data_files/entropy_seed"
|
|
|
|
Entropy threshold #1
|
|
entropy_threshold:16:2:8
|
|
|
|
Entropy threshold #2
|
|
entropy_threshold:32:1:32
|
|
|
|
Entropy thershold #3
|
|
entropy_threshold:16:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
|
|
|
|
Entropy thershold #4
|
|
entropy_threshold:1024:1:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
|
|
|
|
Check NV seed standard IO
|
|
entropy_nv_seed_std_io:
|
|
|
|
Check NV seed manually #1
|
|
entropy_nv_seed:"00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF"
|
|
|
|
Check NV seed manually #2
|
|
entropy_nv_seed:"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
|
|
|
Check NV seed manually #3
|
|
entropy_nv_seed:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
|
|
Entropy self test
|
|
entropy_selftest:
|