summaryrefslogtreecommitdiff
path: root/tests/fipsdrv.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-11-24 16:37:50 +0000
committerWerner Koch <wk@gnupg.org>2008-11-24 16:37:50 +0000
commit8cc2eb702eeed951907db225f25a1088db4e5c44 (patch)
treecb2d85993036d2a8c755a3729330a767f1e49c03 /tests/fipsdrv.c
parentf73ff6ce957e65b40dd7a52e9d96744239eb4996 (diff)
downloadlibgcrypt-8cc2eb702eeed951907db225f25a1088db4e5c44.tar.gz
Cleaned up the public key module calling conventions.
Add a way to derive RSA keys according to X9.31.
Diffstat (limited to 'tests/fipsdrv.c')
-rw-r--r--tests/fipsdrv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/fipsdrv.c b/tests/fipsdrv.c
index 9d3d5ba9..e27b84c1 100644
--- a/tests/fipsdrv.c
+++ b/tests/fipsdrv.c
@@ -240,6 +240,8 @@ read_textline (FILE *fp)
any = 1;
}
while (*line == '#'); /* Always skip comment lines. */
+ if (verbose > 1)
+ fprintf (stderr, PGM ": received line: %s\n", line);
return gcry_xstrdup (line);
}
@@ -800,6 +802,8 @@ print_buffer (const void *buffer, size_t length)
{
const unsigned char *p = buffer;
+ if (verbose > 1)
+ showhex ("sent line", buffer, length);
while (length-- && !ferror (stdout) )
printf ("%02X", *p++);
if (ferror (stdout))
@@ -1099,6 +1103,8 @@ run_cipher_mct_loop (int encrypt_mode, int cipher_algo, int cipher_mode,
putchar ('\n');
print_buffer (input, blocklen); /* Next input text. */
putchar ('\n');
+ if (verbose > 1)
+ showhex ("sent line", "", 0);
putchar ('\n');
fflush (stdout);