test: removed obsolete byte_hexdump() function
@@ -742,12 +742,6 @@ get_ooo_mgr_size(const void *ptr, const unsigned index)
return mgr_sz_tab[index];
}
-static void
-byte_hexdump(const char *message, const uint8_t *ptr, const uint32_t len)
-{
- hexdump(stdout, message, ptr, len);
-}
-
static void
print_algo_info(const struct params_s *params)
{
@@ -1777,9 +1771,9 @@ do_test(IMB_MGR *enc_mb_mgr, const enum arch_type_e enc_arch,
memcmp(in_digest, out_digest, tag_size_to_check) != 0) {
fprintf(stderr,
"\nInput and output tags don't match\n");
- byte_hexdump("Input digest", in_digest,
+ hexdump(stdout, "Input digest", in_digest,
tag_size_to_check);
- byte_hexdump("Output digest", out_digest,
+ hexdump(stdout, "Output digest", out_digest,
tag_size_to_check);
goto_exit = 1;
}
@@ -1788,8 +1782,8 @@ do_test(IMB_MGR *enc_mb_mgr, const enum arch_type_e enc_arch,
memcmp(src_dst_buf, test_buf, buf_size) != 0) {
fprintf(stderr,
"\nDecrypted text and plaintext don't match\n");
- byte_hexdump("Plaintext (orig)", test_buf, buf_size);
- byte_hexdump("Decrypted msg", src_dst_buf, buf_size);
+ hexdump(stdout, "Plaintext (orig)", test_buf, buf_size);
+ hexdump(stdout, "Decrypted msg", src_dst_buf, buf_size);
goto_exit = 1;
}
@@ -1801,9 +1795,9 @@ do_test(IMB_MGR *enc_mb_mgr, const enum arch_type_e enc_arch,
out_digest + 4, 4) != 0) {
fprintf(stderr, "\nDecrypted CRC and calculated"
" CRC don't match\n");
- byte_hexdump("Decrypted CRC",
+ hexdump(stdout, "Decrypted CRC",
src_dst_buf + 8 + plen, 4);
- byte_hexdump("Calculated CRC",
+ hexdump(stdout, "Calculated CRC",
out_digest + 4, 4);
goto_exit = 1;
}
