1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Fix exporting key for ECC.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2019-11-28 14:32:57 +09:00
parent 0e40b033b8
commit 3fae9540c6

View File

@ -751,7 +751,7 @@ cleartext_secret_key_to_openpgp (gcry_sexp_t s_key, PKT_public_key *pk)
if (err)
goto leave;
if (!err)
err = gcry_sexp_extract_param (key, NULL, "q",
err = gcry_sexp_extract_param (key, NULL, "/q",
&pub_params[0],
NULL);
if (!err && (gcry_mpi_cmp(pk->pkey[1], pub_params[0])))
@ -764,7 +764,7 @@ cleartext_secret_key_to_openpgp (gcry_sexp_t s_key, PKT_public_key *pk)
{
gcry_mpi_release (pk->pkey[sec_start]);
pk->pkey[sec_start] = NULL;
err = gcry_sexp_extract_param (key, NULL, "d",
err = gcry_sexp_extract_param (key, NULL, "/d",
&pk->pkey[sec_start],
NULL);
}