Rename asymmetric_encrypt to clarify what it does
Renamed to asymmetric_encrypt_decrypt
diff --git a/tests/suites/test_suite_psa_crypto.function b/tests/suites/test_suite_psa_crypto.function
index 4522b9a..39e1041 100644
--- a/tests/suites/test_suite_psa_crypto.function
+++ b/tests/suites/test_suite_psa_crypto.function
@@ -634,8 +634,8 @@
/* BEGIN_CASE */
-void asymmetric_encrypt( int key_type_arg, char *key_hex,
- int alg_arg, char *input_hex )
+void asymmetric_encrypt_decrypt( int key_type_arg, char *key_hex,
+ int alg_arg, char *input_hex )
{
int slot = 1;
psa_key_type_t key_type = key_type_arg;
@@ -672,8 +672,9 @@
TEST_ASSERT( psa_import_key( slot, key_type,
key_data, key_size ) == PSA_SUCCESS );
- //checked using encrypt/decrpyt because of non-optional random
- // part of encryption process preventing using fixed vectors
+ /* We test encryption by checking that encrypt-then-decrypt gives back
+ * the original plaintext because of the non-optional random
+ * part of encryption process which prevents using fixed vectors. */
TEST_ASSERT( psa_asymmetric_encrypt(slot, alg,
input_data,
input_size,