aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-10-30 00:23:35 +0000
committerNIIBE Yutaka <[email protected]>2020-10-30 00:23:35 +0000
commitba321b60bc3bfc29dfc6fa325dcabad4fac29f9c (patch)
tree976f6f50024d81d40f57eaee6a9d467aad4f8f4a
parentgpg: New command --quick-revoke-sig (diff)
downloadgnupg-ba321b60bc3bfc29dfc6fa325dcabad4fac29f9c.tar.gz
gnupg-ba321b60bc3bfc29dfc6fa325dcabad4fac29f9c.zip
agent: Fix secret key import for Ed25519.
* agent/cvt-openpgp.c (convert_secret_key): Avoid adding 0x00 at the beginning of MPI. -- In master, we handle it as opaque MPI, but in 2.2, we use standard MPI here. GnuPG-bug-id: 5114 Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--agent/cvt-openpgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/cvt-openpgp.c b/agent/cvt-openpgp.c
index 758eab9ab..ff153c358 100644
--- a/agent/cvt-openpgp.c
+++ b/agent/cvt-openpgp.c
@@ -158,7 +158,7 @@ convert_secret_key (gcry_sexp_t *r_key, int pubkey_algo, gcry_mpi_t *skey,
if (!strcmp (curve, "Ed25519"))
/* Do not store the OID as name but the real name and the
EdDSA flag. */
- format = "(private-key(ecc(curve %s)(flags eddsa)(q%m)(d%m)))";
+ format = "(private-key(ecc(curve %s)(flags eddsa)(q%m)(d%M)))";
else if (!strcmp (curve, "Curve25519"))
format = "(private-key(ecc(curve %s)(flags djb-tweak)(q%m)(d%m)))";
else