Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a87c7c8

Browse files
author
Cruz Monrreal
authoredMar 7, 2019
Merge pull request #9312 from kfnta/psa_compliance
PSA compliance tests suite
2 parents a00de86 + 4edb6da commit a87c7c8

File tree

322 files changed

+27342
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

322 files changed

+27342
-9
lines changed
 

‎.astyleignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ components/802.15.4_RF
2424
components/wifi
2525
components/TARGET_PSA/TARGET_TFM
2626
tools
27+
components/TARGET_PSA/TESTS
2728
components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl
2829
components/TARGET_PSA/services/attestation/qcbor
29-
components/TARGET_PSA/services/attestation/attestation.h
30+
components/TARGET_PSA/services/attestation/attestation.h
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# PSA Initial Attestation Testcase checklist
2+
3+
| Test | Return value | API | Test Algorithm | Test Cases |
4+
|-----------|--------------------------------------|-------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
5+
| test_a001 | PSA_ATTEST_ERR_SUCCESS | psa_initial_attest_get_token()<br />psa_initial_attest_get_token_size() | 1. Provide correct inputs to API with described challenge sizes <br />2. Expect API to return this define as return value each time <br />3. Verify the token | 1. Challenge_size = 32 <br />2. Challenge_size = 48 <br />3. Challenge_size = 64 |
6+
| | PSA_ATTEST_ERR_INVALID_INPUT | psa_initial_attest_get_token()<br />psa_initial_attest_get_token_size() | 1. Provide described challenge sizes to the API along with other valid parameters <br />2. Expect API to return this define as return value each time | 1. Challenge_size is zero <br />2. Invalid challenge size between 0 and 32 <br />3. Invalid challenge size between 32 and 64 <br />4. Challenge_size is greater than MAX_CHALLENGE_SIZE |
7+
| | PSA_ATTEST_ERR_TOKEN_BUFFER_OVERFLOW | psa_initial_attest_get_token() | 1. Provide described taken size to the API along with other valid parameters <br />2. Expect API to return this define as return value each time | Pass the token_size which less than actual/required token size |
8+
| | PSA_ATTEST_ERR_INIT_FAILED | psa_initial_attest_get_token()<br />psa_initial_attest_get_token_size() | Can't simulate. Test can't generate stimulus where attestation initialisation fails | |
9+
| | PSA_ATTEST_ERR_CLAIM_UNAVAILABLE | psa_initial_attest_get_token() | Can't simulate. Test can't generate stimulus where claim can unavailable | |
10+
| | PSA_ATTEST_ERR_GENERAL | psa_initial_attest_get_token()<br />psa_initial_attest_get_token_size() | Can't simulate. Test can't generate stimulus where unexpected error happened during API operation | |
11+
12+
## Note
13+
14+
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.
15+
2. Checks related to token signature validation will be part of future release
16+
17+
# License
18+
Arm PSA test suite is distributed under Apache v2.0 License.
19+
20+
--------------
21+
22+
*Copyright (c) 2019, Arm Limited and Contributors. All rights reserved.*

0 commit comments

Comments
 (0)