mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-15 10:20:52 +00:00
Change hash output formatting
Change the formatting of the hash output to remove line breaks and spaces. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
c07fa29b58
commit
9730cb1274
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user