Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 4.16 KB

psa_attestation_testlist.md

File metadata and controls

24 lines (18 loc) · 4.16 KB

PSA Initial Attestation Testcase checklist

Test Return value API Test Algorithm Test Cases
test_a001 PSA_SUCCESS psa_initial_attest_get_token()
psa_initial_attest_get_token_size()
1. Provide correct inputs to API with described challenge sizes
2. Expect API to return this define as return value each time
3. Verify the token
1. Challenge_size = 32
2. Challenge_size = 48
3. Challenge_size = 64
PSA_ERROR_INVALID_ARGUMENT psa_initial_attest_get_token()
psa_initial_attest_get_token_size()
1. Provide described challenge sizes to the API along with other valid parameters
2. Expect API to return this define as return value each time
1. Challenge_size is zero
2. Invalid challenge size between 0 and 32
3. Invalid challenge size between 32 and 64
4. Challenge_size is greater than MAX_CHALLENGE_SIZE
PSA_ERROR_BUFFER_TOO_SMALL psa_initial_attest_get_token() 1. Provide described taken size to the API along with other valid parameters
2. Expect API to return this define as return value each time
1. Token_size as zero
2. Token_size less than challenge size
PSA_ERROR_SERVICE_FAILURE psa_initial_attest_get_token()
psa_initial_attest_get_token_size()
Can't simulate. Test can't generate stimulus where attestation initialisation fails
PSA_ERROR_GENERIC_ERROR psa_initial_attest_get_token()
psa_initial_attest_get_token_size()
Can't simulate. Test can't generate stimulus where unexpected error happened during API operation

Note

  1. In verifying the token, only the data type of claims and presence of the mandatory claims are checked and the values of the claims are not checked.
  2. Specify the version of underlying PSA crypto in /api-tests/platform/targets/<target_name>/nspe/pal_config.h
  3. Supported crypto versions are CRYPTO_VERSION_BETA1, CRYPTO_VERSION_BETA2 and CRYPTO_VERSION_BETA3
  4. Signer ID and Version fields of the software component must be present to be compliant with the PSA-SM
  5. Define the macro PLATFORM_OVERRIDE_ATTEST_PK in /api-tests/platform/targets/<target_name>/nspe/pal_config.h to use hardcoded public key

License

Arm PSA test suite is distributed under Apache v2.0 License.


Copyright (c) 2019-2020, Arm Limited and Contributors. All rights reserved.