@@ -95,29 +95,29 @@ static void check_initial_attestation_get_token()
95
95
uint32_t token_size;
96
96
97
97
status = psa_crypto_init ();
98
- TEST_ASSERT_EQUAL (status, PSA_SUCCESS );
98
+ TEST_ASSERT_EQUAL (PSA_SUCCESS, status );
99
99
status = psa_attestation_inject_key (private_key_data,
100
100
sizeof (private_key_data),
101
101
PSA_KEY_TYPE_ECC_KEY_PAIR (PSA_ECC_CURVE_SECP_R1),
102
102
exported,
103
103
sizeof (exported),
104
104
&exported_length);
105
105
106
- TEST_ASSERT_EQUAL (status, PSA_SUCCESS );
106
+ TEST_ASSERT_EQUAL (PSA_SUCCESS, status );
107
107
TEST_ASSERT_EQUAL (sizeof (public_key_data), exported_length);
108
- TEST_ASSERT_EQUAL (memcmp (public_key_data, exported, exported_length), 0 );
108
+ TEST_ASSERT_EQUAL (0 , memcmp (public_key_data, exported, exported_length));
109
109
110
110
attest_err = psa_initial_attest_get_token_size (TEST_CHALLENGE_OBJ_SIZE,
111
111
&token_size);
112
112
113
- TEST_ASSERT_EQUAL (attest_err, PSA_ATTEST_ERR_SUCCESS );
113
+ TEST_ASSERT_EQUAL (PSA_ATTEST_ERR_SUCCESS, attest_err );
114
114
115
115
attest_err = psa_initial_attest_get_token (challenge_buffer,
116
116
TEST_CHALLENGE_OBJ_SIZE,
117
117
token_buffer,
118
118
&token_size);
119
119
120
- TEST_ASSERT_EQUAL (attest_err, PSA_ATTEST_ERR_SUCCESS );
120
+ TEST_ASSERT_EQUAL (PSA_ATTEST_ERR_SUCCESS, attest_err );
121
121
}
122
122
/* **************************************************************************************/
123
123
0 commit comments