fix and add tests case + fix for padding mode
diff --git a/tests/suites/test_suite_psa_crypto.function b/tests/suites/test_suite_psa_crypto.function
index 8d16c6f..4f1d3d6 100644
--- a/tests/suites/test_suite_psa_crypto.function
+++ b/tests/suites/test_suite_psa_crypto.function
@@ -264,6 +264,7 @@
}
/* END_CASE */
+
/* BEGIN_CASE */
void cipher_test_encrypt( int alg_arg, int key_type_arg,
char *key_hex,
@@ -613,9 +614,6 @@
exit:
mbedtls_free( key );
mbedtls_free( input );
- mbedtls_free( output1 );
- mbedtls_free( output2 );
-
psa_destroy_key( key_slot );
mbedtls_psa_crypto_free( );
}
@@ -718,14 +716,11 @@
exit:
mbedtls_free( key );
mbedtls_free( input );
- mbedtls_free( output1 );
- mbedtls_free( output2 );
psa_destroy_key( key_slot );
mbedtls_psa_crypto_free( );
}
/* END_CASE */
-
/* BEGIN_CASE */
void signature_size( int type_arg, int bits, int alg_arg, int expected_size_arg )
{