From 9730cb12748eb0dbc4b0b5b586e2c525accade8e Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Fri, 28 Jul 2023 15:07:19 +0100 Subject: [PATCH] Change hash output formatting Change the formatting of the hash output to remove line breaks and spaces. Signed-off-by: Thomas Daubney --- programs/psa/psa_hash.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/programs/psa/psa_hash.c b/programs/psa/psa_hash.c index 95fb61ce8..f09b48c06 100644 --- a/programs/psa/psa_hash.c +++ b/programs/psa/psa_hash.c @@ -145,13 +145,10 @@ int main(void) mbedtls_printf("One-shot hash operation successful!\n\n"); - mbedtls_printf("The SHA-256( '%s' ) is:\n", buf); + mbedtls_printf("The SHA-256( '%s' ) is: ", buf); for (size_t j = 0; j < test_sha256_hash_len; j++) { - if (j % 8 == 0) { - mbedtls_printf("\n "); - } - mbedtls_printf("%02x ", hash[j]); + mbedtls_printf("%02x", hash[j]); } mbedtls_printf("\n");