ecc: adjust debugging output

Authored by dkg on Mar 20 2019, 2:59 AM.

Description

ecc: adjust debugging output

* cipher/ecc.c (ecc_check_secret_key): adjust debugging output to use
full column titles.

Without this change, the debugging headers say "inf" and "nam". With
this change, the alignment for all columns stay the same, but the
headers say "info" and "name", which are much more legible.

  • Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Details

Committed
dkgMar 20 2019, 2:59 AM
Parents
rCad133fc79757: fips: Only test check_binary_integrity when fips_mode is enabled.
Branches
Unknown
Tags
Unknown
References
dkg/ecc-debug-cleanup
werner added a subscriber: werner.Mar 20 2019, 9:51 AM

:-)

BTW, for looking at such hexdumps I use this little tool:

https://git.gnupg.org/cgi-bin/gitweb.cgi?p=wk-misc.git;a=blob_plain;f=undump.c;hb=e0ac8a202d35eab4ded395c4da7e3cfafa440e30

So in emacs you can remove the log line prefixes, mark the region and run M-| undump |hd or undump | gpg --list-packets. I just added skipping of trailing backslashes, because in the pas I had to remove them before I could apply that tool.