summaryrefslogtreecommitdiff
path: root/cipher/ecc.c
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-03-19 21:59:54 -0400
committerWerner Koch <wk@gnupg.org>2019-03-20 09:56:27 +0100
commit54db6a4b44124ed7e95897174f32262482b4b0cb (patch)
tree1467491d35f3d75b1b451c472b819118514f9ed1 /cipher/ecc.c
parentad133fc79757236359252e92244fe16e9adb45a3 (diff)
downloadlibgcrypt-54db6a4b44124ed7e95897174f32262482b4b0cb.tar.gz
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> GnuPG-bug-id: 4414
Diffstat (limited to 'cipher/ecc.c')
-rw-r--r--cipher/ecc.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/cipher/ecc.c b/cipher/ecc.c
index 3f221a24..06010ef2 100644
--- a/cipher/ecc.c
+++ b/cipher/ecc.c
@@ -812,20 +812,20 @@ ecc_check_secret_key (gcry_sexp_t keyparms)
}
if (DBG_CIPHER)
{
- log_debug ("ecc_testkey inf: %s/%s\n",
+ log_debug ("ecc_testkey info: %s/%s\n",
_gcry_ecc_model2str (sk.E.model),
_gcry_ecc_dialect2str (sk.E.dialect));
if (sk.E.name)
- log_debug ("ecc_testkey nam: %s\n", sk.E.name);
- log_printmpi ("ecc_testkey p", sk.E.p);
- log_printmpi ("ecc_testkey a", sk.E.a);
- log_printmpi ("ecc_testkey b", sk.E.b);
- log_printpnt ("ecc_testkey g", &sk.E.G, NULL);
- log_printmpi ("ecc_testkey n", sk.E.n);
- log_printmpi ("ecc_testkey h", sk.E.h);
- log_printmpi ("ecc_testkey q", mpi_q);
+ log_debug ("ecc_testkey name: %s\n", sk.E.name);
+ log_printmpi ("ecc_testkey p", sk.E.p);
+ log_printmpi ("ecc_testkey a", sk.E.a);
+ log_printmpi ("ecc_testkey b", sk.E.b);
+ log_printpnt ("ecc_testkey g", &sk.E.G, NULL);
+ log_printmpi ("ecc_testkey n", sk.E.n);
+ log_printmpi ("ecc_testkey h", sk.E.h);
+ log_printmpi ("ecc_testkey q", mpi_q);
if (!fips_mode ())
- log_printmpi ("ecc_testkey d", sk.d);
+ log_printmpi ("ecc_testkey d", sk.d);
}
if (!sk.E.p || !sk.E.a || !sk.E.b || !sk.E.G.x || !sk.E.n || !sk.E.h || !sk.d)
{
@@ -873,7 +873,7 @@ ecc_check_secret_key (gcry_sexp_t keyparms)
xfree (curvename);
sexp_release (l1);
if (DBG_CIPHER)
- log_debug ("ecc_testkey => %s\n", gpg_strerror (rc));
+ log_debug ("ecc_testkey => %s\n", gpg_strerror (rc));
return rc;
}