Remove trailing whitespace
Only horizontal whitespace changes in this commit.
@@ -401,7 +401,6 @@ void key_policy( int usage_arg, int alg_arg )
psa_key_policy_t policy_set = {0};
psa_key_policy_t policy_get = {0};
-
memset( key, 0x2a, sizeof( key ) );
TEST_ASSERT( psa_crypto_init( ) == PSA_SUCCESS );
@@ -425,9 +424,6 @@ void key_policy( int usage_arg, int alg_arg )
TEST_ASSERT( policy_get.usage == policy_set.usage );
TEST_ASSERT( policy_get.alg == policy_set.alg );
-
-
-
exit:
psa_destroy_key( key_slot );
mbedtls_psa_crypto_free( );
@@ -489,21 +485,29 @@ void key_lifetime( int lifetime_arg )
unsigned char key[32] = {0};
psa_key_lifetime_t lifetime_set = (psa_key_lifetime_t) lifetime_arg;
psa_key_lifetime_t lifetime_get;
+
memset( key, 0x2a, sizeof( key ) );
+
TEST_ASSERT( psa_crypto_init( ) == PSA_SUCCESS );
+
TEST_ASSERT( psa_set_key_lifetime( key_slot,
lifetime_set ) == PSA_SUCCESS );
+
TEST_ASSERT( psa_import_key( key_slot, key_type,
key, sizeof( key ) ) == PSA_SUCCESS );
+
TEST_ASSERT( psa_get_key_lifetime( key_slot,
&lifetime_get ) == PSA_SUCCESS );
+
TEST_ASSERT( lifetime_get == lifetime_set );
+
exit:
psa_destroy_key( key_slot );
mbedtls_psa_crypto_free( );
}
/* END_CASE */
+
/* BEGIN_CASE */
void key_lifetime_set_fail( int key_slot_arg, int lifetime_arg, int expected_status_arg )
{
