ecc: Fix ecc_verify for cofactor support.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 6 May 2016 04:21:17 +0000 (13:21 +0900)
committerWerner Koch <wk@gnupg.org>
Wed, 8 Jun 2016 16:18:06 +0000 (18:18 +0200)
* cipher/ecc.c (ecc_verify): Fix the argument for cofactor "h".

--

Thanks to onitake.
GnuPG-bug-id: 2347
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
cipher/ecc.c

index a437a1f..b09902e 100644 (file)
@@ -1071,7 +1071,7 @@ ecc_verify (gcry_sexp_t s_sig, gcry_sexp_t s_data, gcry_sexp_t s_keyparms)
   if ((ctx.flags & PUBKEY_FLAG_PARAM))
     rc = sexp_extract_param (s_keyparms, NULL, "-p?a?b?g?n?h?/q",
                              &pk.E.p, &pk.E.a, &pk.E.b, &mpi_g, &pk.E.n,
-                             &pk.E.n, &mpi_q, NULL);
+                             &pk.E.h, &mpi_q, NULL);
   else
     rc = sexp_extract_param (s_keyparms, NULL, "/q",
                              &mpi_q, NULL);