aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/misc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-09-02 09:22:07 +0000
committerWerner Koch <[email protected]>2014-09-02 09:22:07 +0000
commitafe85582ddc2ebc285728bf6417f8929fd0b3281 (patch)
tree856a9d8a9f7606742f1db3b8938e7d14df66b86e /dirmngr/misc.c
parentgpg: Fix export of ecc secret keys by adjusting check ordering. (diff)
downloadgnupg-afe85582ddc2ebc285728bf6417f8929fd0b3281.tar.gz
gnupg-afe85582ddc2ebc285728bf6417f8929fd0b3281.zip
agent: Fix import of OpenPGP EdDSA keys.
* agent/cvt-openpgp.c (get_keygrip): Special case EdDSA. (convert_secret_key): Ditto. (convert_transfer_key): Ditto. (apply_protection): Handle opaque MPIs. (do_unprotect): Check FLAG_OPAQUE instead of FLAG_USER1 before unpacking an opaque mpi. -- The key transfer protocol between gpg and gpg-agent uses gcrypt algorithm numbers which merge all ECC algorithms into one. Thus it is not possible to use the algorithm number to determine the EdDSA algorithm. We need to known that because Libgcrypt requires the "eddsa" flag with the curve "Ed25519" to actually use the Ed25519 signature specification. The last fix is for correctness; the first case won't be used anyway.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions