xref: /aosp_15_r20/external/mbedtls/tests/suites/test_suite_psa_crypto_init.data (revision 62c56f9862f102b96d72393aff6076c951fb8148)
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
13No random without init
14validate_module_init_generate_random:0
15
16No key slot access without init
17validate_module_init_key_based:0
18
19No random after deinit
20validate_module_init_generate_random:1
21
22No key slot access after deinit
23validate_module_init_key_based:1
24
25Custom entropy sources: all standard
26custom_entropy_sources:0x0000ffff:PSA_SUCCESS
27
28# MBEDTLS_PSA_INJECT_ENTROPY means that a source of entropy (the seed file)
29# is effectively always available.
30Custom entropy sources: none
31depends_on:!MBEDTLS_PSA_INJECT_ENTROPY
32custom_entropy_sources:0:PSA_ERROR_INSUFFICIENT_ENTROPY
33
34Fake entropy: never returns anything
35fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:0:PSA_ERROR_INSUFFICIENT_ENTROPY
36
37Fake entropy: less than the block size
38fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:-1:PSA_ERROR_INSUFFICIENT_ENTROPY
39
40Fake entropy: not enough for a nonce
41depends_on:ENTROPY_NONCE_LEN != 0
42fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:ENTROPY_NONCE_LEN - 1:-1:-1:-1:PSA_ERROR_INSUFFICIENT_ENTROPY
43
44Fake entropy: one block eventually
45depends_on:ENTROPY_NONCE_LEN == 0
46fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
47
48Fake entropy: one block in two steps
49depends_on:ENTROPY_NONCE_LEN == 0
50fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:1:-1:-1:PSA_SUCCESS
51
52Fake entropy: more than one block in two steps
53depends_on:ENTROPY_NONCE_LEN == 0
54fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:PSA_SUCCESS
55
56Fake entropy: two blocks eventually
57fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
58
59NV seed only: less than minimum
60entropy_from_nv_seed:MBEDTLS_ENTROPY_MIN_PLATFORM - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
61
62NV seed only: less than one block
63entropy_from_nv_seed:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
64
65NV seed only: just enough
66entropy_from_nv_seed:ENTROPY_MIN_NV_SEED_SIZE:PSA_SUCCESS
67
68Recreate NV seed file
69create_nv_seed:
70