22 uint32_t challenge_size;
23 uint32_t actual_challenge_size;
25 psa_status_t expected_status;
30 {
"Test psa_initial_attestation_get_token with Challenge 32\n",
34 {
"Test psa_initial_attestation_get_token with Challenge 48\n",
35 PSA_INITIAL_ATTEST_CHALLENGE_SIZE_48, PSA_INITIAL_ATTEST_CHALLENGE_SIZE_48, TOKEN_SIZE, PSA_SUCCESS
38 {
"Test psa_initial_attestation_get_token with Challenge 64\n",
39 PSA_INITIAL_ATTEST_CHALLENGE_SIZE_64, PSA_INITIAL_ATTEST_CHALLENGE_SIZE_64, TOKEN_SIZE, PSA_SUCCESS
42 {
"Test psa_initial_attestation_get_token with zero challenge size\n",
46 {
"Test psa_initial_attestation_get_token with small challenge size\n",
48 TOKEN_SIZE, PSA_ATTEST_ERR_INVALID_INPUT
51 {
"Test psa_initial_attestation_get_token with invalid challenge size\n",
53 TOKEN_SIZE, PSA_ATTEST_ERR_INVALID_INPUT
56 {
"Test psa_initial_attestation_get_token with large challenge size\n",
57 MAX_CHALLENGE_SIZE+1, MAX_CHALLENGE_SIZE+1, TOKEN_SIZE, PSA_ATTEST_ERR_INVALID_INPUT
60 {
"Test psa_initial_attestation_get_token with zero as token size\n",
62 0, PSA_ATTEST_ERR_INVALID_INPUT
65 {
"Test psa_initial_attestation_get_token with small token size\n",
72 {
"Test psa_initial_attestation_get_token_size with Challenge 32\n",
76 {
"Test psa_initial_attestation_get_token_size with Challenge 48\n",
77 PSA_INITIAL_ATTEST_CHALLENGE_SIZE_48, PSA_INITIAL_ATTEST_CHALLENGE_SIZE_48, TOKEN_SIZE, PSA_SUCCESS
80 {
"Test psa_initial_attestation_get_token_size with Challenge 64\n",
81 PSA_INITIAL_ATTEST_CHALLENGE_SIZE_64, PSA_INITIAL_ATTEST_CHALLENGE_SIZE_64, TOKEN_SIZE, PSA_SUCCESS
84 {
"Test psa_initial_attestation_get_token_size with zero challenge size\n",
89 {
"Test psa_initial_attestation_get_token_size with small challenge size\n",
91 TOKEN_SIZE, PSA_ATTEST_ERR_INVALID_INPUT
94 {
"Test psa_initial_attestation_get_token_size with invalid challenge size\n",
96 TOKEN_SIZE, PSA_ATTEST_ERR_INVALID_INPUT
99 {
"Test psa_initial_attestation_get_token_size with large challenge size\n",
100 MAX_CHALLENGE_SIZE+1, MAX_CHALLENGE_SIZE+1,
101 TOKEN_SIZE, PSA_ATTEST_ERR_INVALID_INPUT
Some parameter or combination of parameters are recognised as invalid:
Copyright (c) 2019, Arm Limited or its affiliates.
Token buffer is too small to store the created token there.
#define PSA_INITIAL_ATTEST_CHALLENGE_SIZE_32
The allowed size of input challenge in bytes: 32, 48, 64 Challenge can be a nonce from server or the ...