mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-30 16:17:02 +01:00
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 <gniibe@fsij.org>
This commit is contained in:
parent
7ec56b0336
commit
ba321b60bc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user