From c07fa29b58b8ae6a3d1fc79cc14b04649c5c07a0 Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Fri, 28 Jul 2023 14:58:55 +0100 Subject: [PATCH] Change wording in error message Change wording from "failed" since this implied the function had returned an error status instead of producing the wrong result. Signed-off-by: Thomas Daubney --- programs/psa/psa_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/psa/psa_hash.c b/programs/psa/psa_hash.c index f7b2f91974..95fb61ce82 100644 --- a/programs/psa/psa_hash.c +++ b/programs/psa/psa_hash.c @@ -136,7 +136,7 @@ int main(void) for (size_t j = 0; j < test_sha256_hash_len; j++) { if (hash[j] != test_sha256_hash[j]) { - mbedtls_printf("One-shot hash operation failed!\n\n"); + mbedtls_printf("One-shot hash operation gave the wrong result!\n\n"); psa_hash_abort(&hash_operation); psa_hash_abort(&cloned_hash_operation); return EXIT_FAILURE;