diff options
author | Werner Koch <wk@gnupg.org> | 2009-01-21 18:44:57 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2009-01-21 18:44:57 +0000 |
commit | 1633b3216bd56e4bb6cc3b930c7c24a7c64860c8 (patch) | |
tree | f8631039372b767bfd06f9edf2b865bbb5a62f93 /tests/fipsdrv.c | |
parent | 01a0418237c46504ffc3894051aff6e5034c76f8 (diff) | |
download | libgcrypt-1633b3216bd56e4bb6cc3b930c7c24a7c64860c8.tar.gz |
print N value for rsa-derive.
Diffstat (limited to 'tests/fipsdrv.c')
-rw-r--r-- | tests/fipsdrv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fipsdrv.c b/tests/fipsdrv.c index 06fa3485..2bf28040 100644 --- a/tests/fipsdrv.c +++ b/tests/fipsdrv.c @@ -1282,7 +1282,7 @@ run_hmac (int digest_algo, const void *key, size_t keylen, /* Derive an RSA key using the S-expression in (DATA,DATALEN). This S-expression is used directly as input to gcry_pk_genkey. The result is printed to stdout with one parameter per line in hex - format and in this order: p, q, d. */ + format and in this order: p, q, n, d. */ static void run_rsa_derive (const void *data, size_t datalen) { @@ -1308,13 +1308,13 @@ run_rsa_derive (const void *data, size_t datalen) /* P and Q might have been swapped but we need to to return them in the proper order. Build the parameter list accordingly. */ - parmlist = "pqd"; + parmlist = "pqnd"; s_top = gcry_sexp_find_token (s_key, "misc-key-info", 0); if (s_top) { l1 = gcry_sexp_find_token (s_top, "p-q-swapped", 0); if (l1) - parmlist = "qpd"; + parmlist = "qpnd"; gcry_sexp_release (l1); gcry_sexp_release (s_top); } |