2018-11-20 23:21:37 +01:00
|
|
|
Create NV seed file
|
|
|
|
create_nv_seed:
|
|
|
|
|
2018-11-20 20:56:14 +01:00
|
|
|
PSA init/deinit
|
2018-11-20 21:00:42 +01:00
|
|
|
init_deinit:2
|
2018-11-20 20:56:14 +01:00
|
|
|
|
2018-11-20 21:42:52 +01:00
|
|
|
PSA deinit without init
|
|
|
|
deinit_without_init:0
|
|
|
|
|
|
|
|
PSA deinit twice
|
|
|
|
deinit_without_init:1
|
|
|
|
|
2018-11-20 21:00:42 +01:00
|
|
|
No random without init
|
|
|
|
validate_module_init_generate_random:0
|
2018-11-20 20:56:14 +01:00
|
|
|
|
2018-11-20 21:00:42 +01:00
|
|
|
No key slot access without init
|
|
|
|
validate_module_init_key_based:0
|
|
|
|
|
|
|
|
No random after deinit
|
|
|
|
validate_module_init_generate_random:1
|
|
|
|
|
|
|
|
No key slot access after deinit
|
|
|
|
validate_module_init_key_based:1
|
2018-11-20 21:59:56 +01:00
|
|
|
|
|
|
|
Custom entropy sources: all standard
|
|
|
|
custom_entropy_sources:0x0000ffff:PSA_SUCCESS
|
|
|
|
|
2023-04-28 23:41:38 +02:00
|
|
|
# MBEDTLS_PSA_INJECT_ENTROPY means that a source of entropy (the seed file)
|
|
|
|
# is effectively always available.
|
2018-11-20 21:59:56 +01:00
|
|
|
Custom entropy sources: none
|
2023-04-28 23:41:38 +02:00
|
|
|
depends_on:!MBEDTLS_PSA_INJECT_ENTROPY
|
2018-11-20 21:59:56 +01:00
|
|
|
custom_entropy_sources:0:PSA_ERROR_INSUFFICIENT_ENTROPY
|
2018-11-20 22:41:50 +01:00
|
|
|
|
|
|
|
Fake entropy: never returns anything
|
|
|
|
fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:0:PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
|
|
|
|
Fake entropy: less than the block size
|
|
|
|
fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:-1:PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
|
2019-10-23 19:39:36 +02:00
|
|
|
Fake entropy: not enough for a nonce
|
|
|
|
depends_on:ENTROPY_NONCE_LEN != 0
|
|
|
|
fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:ENTROPY_NONCE_LEN - 1:-1:-1:-1:PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
|
2018-11-20 22:41:50 +01:00
|
|
|
Fake entropy: one block eventually
|
2019-10-23 19:39:36 +02:00
|
|
|
depends_on:ENTROPY_NONCE_LEN == 0
|
2018-11-20 22:41:50 +01:00
|
|
|
fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
|
|
|
|
|
|
|
|
Fake entropy: one block in two steps
|
2019-10-23 19:39:36 +02:00
|
|
|
depends_on:ENTROPY_NONCE_LEN == 0
|
2018-11-20 22:41:50 +01:00
|
|
|
fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:1:-1:-1:PSA_SUCCESS
|
|
|
|
|
|
|
|
Fake entropy: more than one block in two steps
|
2019-10-23 19:39:36 +02:00
|
|
|
depends_on:ENTROPY_NONCE_LEN == 0
|
2018-11-20 22:41:50 +01:00
|
|
|
fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:PSA_SUCCESS
|
2018-11-20 23:21:01 +01:00
|
|
|
|
2019-10-23 19:39:36 +02:00
|
|
|
Fake entropy: two blocks eventually
|
|
|
|
fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
|
|
|
|
|
2018-11-20 23:21:01 +01:00
|
|
|
NV seed only: less than minimum
|
|
|
|
entropy_from_nv_seed:MBEDTLS_ENTROPY_MIN_PLATFORM - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
|
|
|
|
NV seed only: less than one block
|
|
|
|
entropy_from_nv_seed:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
|
|
|
|
|
|
|
|
NV seed only: just enough
|
|
|
|
entropy_from_nv_seed:ENTROPY_MIN_NV_SEED_SIZE:PSA_SUCCESS
|
2018-11-20 23:21:37 +01:00
|
|
|
|
|
|
|
Recreate NV seed file
|
|
|
|
create_nv_seed:
|