1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-23 15:07:03 +01:00

gpg: Use opaque byte MPI interface for ECC key.

* g10/keygen.c (ecckey_from_sexp): Parse by GCRYMPI_FMT_OPAQUE.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2019-11-15 16:28:02 +09:00
parent 2096965c53
commit 120f4e8c67

View File

@ -1335,7 +1335,7 @@ ecckey_from_sexp (gcry_mpi_t *array, gcry_sexp_t sexp, int algo)
err = gpg_error (GPG_ERR_NO_OBJ); err = gpg_error (GPG_ERR_NO_OBJ);
goto leave; goto leave;
} }
array[1] = gcry_sexp_nth_mpi (l2, 1, GCRYMPI_FMT_USG); array[1] = gcry_sexp_nth_mpi (l2, 1, GCRYMPI_FMT_OPAQUE);
gcry_sexp_release (l2); gcry_sexp_release (l2);
if (!array[1]) if (!array[1])
{ {