Crypto: Further refine failure message in cipher test

Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Change-Id: I108a7095ec18e8e3954c85b958796fe9a1f91292
diff --git a/test/secure_fw/suites/crypto/crypto_tests_common.c b/test/secure_fw/suites/crypto/crypto_tests_common.c
index 5f9fe1b..c7eef0c 100644
--- a/test/secure_fw/suites/crypto/crypto_tests_common.c
+++ b/test/secure_fw/suites/crypto/crypto_tests_common.c
@@ -1011,7 +1011,11 @@
                                 &output_length);
 
     if (status != PSA_SUCCESS) {
-        TEST_FAIL("Error encrypting with the single-shot API");
+        if (status == PSA_ERROR_NOT_SUPPORTED) {
+            TEST_FAIL("Algorithm NOT SUPPORTED by the implementation");
+        } else {
+            TEST_FAIL("Error encrypting with the single-shot API");
+        }
         goto destroy_key;
     }