tfcrypt: fixing hash output stream.
authorAndrey Rys <rys@lynxlynx.ru>
Sun, 25 Nov 2018 07:43:02 +0000 (14:43 +0700)
committerAndrey Rys <rys@lynxlynx.ru>
Sun, 25 Nov 2018 07:43:02 +0000 (14:43 +0700)
VERSION
tfcrypt.c

diff --git a/VERSION b/VERSION
index d00491fd7e5bb6fa28c517a0bb32b8b506539d4d..0cfbf08886fca9a91cb753ec8734c84fcbe52c9f 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1
+2
index dcf9ea98c394e8405cad36b55752c70ea15dfc35..6e30bc6e46ad06b2e8edc39fac635a8d12410add 100644 (file)
--- a/tfcrypt.c
+++ b/tfcrypt.c
@@ -860,7 +860,7 @@ _xts2genkey:        if (write(krfd, pblk, TF_FROM_BITS(TFC_KEY_BITS)) == -1) xerror(NO,
                        switch (do_outfmt) {
                                case TFC_OUTFMT_B64: tfc_printbase64(stderr, ctr, ctrsz, YES); break;
                                case TFC_OUTFMT_RAW: write(2, ctr, ctrsz); break;
-                               case TFC_OUTFMT_HEX: mhexdump(ctr, ctrsz, ctrsz, YES); break;
+                               case TFC_OUTFMT_HEX: mehexdump(ctr, ctrsz, ctrsz, YES); break;
                        }
                        break;
                case TFC_CTR_RAND: tfc_getrandom(ctr, ctrsz); break;
@@ -1093,7 +1093,7 @@ _macragain:               lio = read(sfd, pblk, lrem);
                                tfc_esay("%s: signature is good", progname);
                                if (verbose) {
                                        if (do_outfmt == TFC_OUTFMT_B64) tfc_printbase64(stderr, macresult, TF_FROM_BITS(macbits), YES);
-                                       else mhexdump(macresult, TF_FROM_BITS(macbits), TF_FROM_BITS(macbits), YES);
+                                       else mehexdump(macresult, TF_FROM_BITS(macbits), TF_FROM_BITS(macbits), YES);
                                }
                        }
                }