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 <thomas.daubney@arm.com>
diff --git a/programs/psa/psa_hash.c b/programs/psa/psa_hash.c
index f7b2f91..95fb61c 100644
--- a/programs/psa/psa_hash.c
+++ b/programs/psa/psa_hash.c
@@ -136,7 +136,7 @@
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;