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:
parent
3071c85835
commit
c07fa29b58
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue