1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

ecc-sos: public key is MPI with the prefix 0x40.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2019-12-03 09:42:43 +09:00
parent f27a581090
commit ed4c1e213a
5 changed files with 5 additions and 11 deletions

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])))