1Create NV seed file
2create_nv_seed:
3
4PSA init/deinit
5init_deinit:2
6
7PSA deinit without init
8deinit_without_init:0
9
10PSA deinit twice
11deinit_without_init:1
12
13PSA threaded init checks
14psa_threaded_init:100
15
16No random without init
17validate_module_init_generate_random:0
18
19No key slot access without init
20validate_module_init_key_based:0
21
22No random after deinit
23validate_module_init_generate_random:1
24
25No key slot access after deinit
26validate_module_init_key_based:1
27
28Custom entropy sources: all standard
29custom_entropy_sources:0x0000ffff:PSA_SUCCESS
30
31# MBEDTLS_PSA_INJECT_ENTROPY means that a source of entropy (the seed file)
32# is effectively always available.
33Custom entropy sources: none
34depends_on:!MBEDTLS_PSA_INJECT_ENTROPY
35custom_entropy_sources:0:PSA_ERROR_INSUFFICIENT_ENTROPY
36
37Fake entropy: never returns anything
38fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:0:PSA_ERROR_INSUFFICIENT_ENTROPY
39
40Fake entropy: less than the block size
41fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:-1:PSA_ERROR_INSUFFICIENT_ENTROPY
42
43Fake entropy: not enough for a nonce
44depends_on:ENTROPY_NONCE_LEN != 0
45fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:ENTROPY_NONCE_LEN - 1:-1:-1:-1:PSA_ERROR_INSUFFICIENT_ENTROPY
46
47Fake entropy: one block eventually
48depends_on:ENTROPY_NONCE_LEN == 0
49fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
50
51Fake entropy: one block in two steps
52depends_on:ENTROPY_NONCE_LEN == 0
53fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:1:-1:-1:PSA_SUCCESS
54
55Fake entropy: more than one block in two steps
56depends_on:ENTROPY_NONCE_LEN == 0
57fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:PSA_SUCCESS
58
59Fake entropy: two blocks eventually
60fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
61
62NV seed only: less than minimum
63entropy_from_nv_seed:MBEDTLS_ENTROPY_MIN_PLATFORM - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
64
65NV seed only: less than one block
66entropy_from_nv_seed:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
67
68NV seed only: just enough
69entropy_from_nv_seed:ENTROPY_MIN_NV_SEED_SIZE:PSA_SUCCESS
70
71Recreate NV seed file
72create_nv_seed:
73