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>
This commit is contained in:
Thomas Daubney 2023-07-28 14:58:55 +01:00
parent 3071c85835
commit c07fa29b58

View file

@ -136,7 +136,7 @@ int main(void)
for (size_t j = 0; j < test_sha256_hash_len; j++) { for (size_t j = 0; j < test_sha256_hash_len; j++) {
if (hash[j] != test_sha256_hash[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(&hash_operation);
psa_hash_abort(&cloned_hash_operation); psa_hash_abort(&cloned_hash_operation);
return EXIT_FAILURE; return EXIT_FAILURE;