• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
28Custom entropy sources: none
29custom_entropy_sources:0:PSA_ERROR_INSUFFICIENT_ENTROPY
30
31Fake entropy: never returns anything
32fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:0:PSA_ERROR_INSUFFICIENT_ENTROPY
33
34Fake entropy: less than the block size
35fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:-1:PSA_ERROR_INSUFFICIENT_ENTROPY
36
37Fake entropy: not enough for a nonce
38depends_on:ENTROPY_NONCE_LEN != 0
39fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:ENTROPY_NONCE_LEN - 1:-1:-1:-1:PSA_ERROR_INSUFFICIENT_ENTROPY
40
41Fake entropy: one block eventually
42depends_on:ENTROPY_NONCE_LEN == 0
43fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
44
45Fake entropy: one block in two steps
46depends_on:ENTROPY_NONCE_LEN == 0
47fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:1:-1:-1:PSA_SUCCESS
48
49Fake entropy: more than one block in two steps
50depends_on:ENTROPY_NONCE_LEN == 0
51fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:PSA_SUCCESS
52
53Fake entropy: two blocks eventually
54fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
55
56NV seed only: less than minimum
57entropy_from_nv_seed:MBEDTLS_ENTROPY_MIN_PLATFORM - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
58
59NV seed only: less than one block
60entropy_from_nv_seed:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
61
62NV seed only: just enough
63entropy_from_nv_seed:ENTROPY_MIN_NV_SEED_SIZE:PSA_SUCCESS
64
65Recreate NV seed file
66create_nv_seed:
67