mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-05 11:34:26 -04:00
Correct code style
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
c918c32cc0
commit
1ba9744afb
@ -114,8 +114,7 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Check the result of the operation against the sample */
|
/* Check the result of the operation against the sample */
|
||||||
if ((memcmp(hash, sample_hash, sample_hash_len) != 0) || hash_length != sample_hash_len)
|
if ((memcmp(hash, sample_hash, sample_hash_len) != 0) || hash_length != sample_hash_len) {
|
||||||
{
|
|
||||||
mbedtls_printf("Multi-part hash operation gave the wrong result!\n\n");
|
mbedtls_printf("Multi-part 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);
|
||||||
@ -150,8 +149,7 @@ int main(void)
|
|||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (memcmp(hash, sample_hash, sample_hash_len) != 0 || hash_length != sample_hash_len)
|
if (memcmp(hash, sample_hash, sample_hash_len) != 0 || hash_length != sample_hash_len) {
|
||||||
{
|
|
||||||
mbedtls_printf("One-shot hash operation gave the wrong result!\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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user