keybase-issues icon indicating copy to clipboard operation
keybase-issues copied to clipboard

Curve25519 key support

Open dspearson opened this issue 11 years ago • 27 comments

There's a new GnuPG modern out. See https://lists.gnupg.org/pipermail/gnupg-announce/2015q3/000371.html

Noteworthy changes in version 2.1.7:

  • gpg: Support encryption with Curve25519 if Libgcrypt 1.7 is used.

Currently, the keys are not supported.

Example:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: ed25519 / cv25519
Version: requires GnuPG >=2.1.7 and libgcrypt >=1.7.0

mDMEVcxoAhYJKwYBBAHaRw8BAQdAF2SOaWvRyYFFjldmtyLMjcdv0lvCI9jGG8x3
XuHXh120KURvbWluaWMgUy4gUGVhcnNvbiA8ZHNwQHRlY2hub2FuaW1hbC5uZXQ+
iH8EExYIACcFAlXMaAICGwMFCRLMAwAFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AA
CgkQg4/P6Ag8oqdKcQEAiAdVRV9EsTfJ7vCjBLrcFVC8D2XsSHZVaxpRgnxQyesB
AMj1wdViMbTvabBjOFQ206kox8dn/mNCVJUf6LkUoBwFuDgEVcxoAhIKKwYBBAGX
VQEFAQEHQBOdoYUDj/FRam2X5YrKpxU0Fk/IGAAlm0XZsjSo7KRSAwEIB4hnBBgW
CAAPBQJVzGgCAhsMBQkSzAMAAAoJEIOPz+gIPKKnVuUBAMNEr84TwlszbtXjjWBc
KV87g9kFKsNuPbz5MvvIFpaCAP9PVL+G+8x10ALtw+m4c7SPQ2wBdTAYFt6p68F1
AwGSDw==
=sF64
-----END PGP PUBLIC KEY BLOCK-----

dspearson avatar Aug 14 '15 13:08 dspearson

I just added support for EdDSA but couldn't easily access Curve25519 support. I'll try to get to it now that it's available. Thanks for the heads-up.

maxtaco avatar Aug 14 '15 13:08 maxtaco

Is there a way to be kept informed when Curve25519 support will be added? There are no release notes per say to watch, correct?

mrapplegate avatar Aug 28 '15 23:08 mrapplegate

install libgcrypt 1.7 which supports it

linux-modder avatar May 09 '16 22:05 linux-modder

With libgcrypt 1.7 and GnuPG >=2.1.7 you get Curve25519 support for gpg itself and everything that uses gpg, like Enigmail, git, ... For keybase this is not true since it uses independent implementations in Go and Node.js as pointed out by @maxtaco here:

In general, these implementations are simple once we have a reference implementation to base ours off of. We'll need one for https://github.com/keybase/kbpgp and one for https://github.com/keybase/go-crypto

ghost avatar May 10 '16 00:05 ghost

Is this viable in the near future?

w4 avatar Oct 05 '16 02:10 w4

Would love to but don't have the bandwidth on the team and it's not very often requested. We're looking for volunteers to help us in either JS/IcedCoffeeScript or Golang

maxtaco avatar Oct 05 '16 14:10 maxtaco

What's left to do in JS and Go? I see upstream golang/crypto has support for ed25519. Does that just need to be pulled into keybase/go-crypto? And then ported to JS?

I'm not very familiar with ECC or Keybase's code, but if there's something I can do to help let me know. I'd love to be able to use my ed25519 key.

mjbshaw avatar Oct 14 '16 03:10 mjbshaw

Eddsa is fully supported. We don't yet have support for encryption with curve 25519 in pgp. We have some work underway. Thanks.

On Thursday, October 13, 2016, Michael Bradshaw [email protected] wrote:

What's left to do in JS and Go? I see upstream golang/crypto has support for ed25519 https://github.com/golang/crypto/tree/master/ed25519. Does that just need to be pulled into keybase/go-crypto? And then ported to JS?

I'm not very familiar with ECC or Keybase's code, but if there's something I can do to help let me know. I'd love to be able to use my ed25519 key.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/keybase/keybase-issues/issues/1738#issuecomment-253703607, or mute the thread https://github.com/notifications/unsubscribe-auth/AA05_xETT2I34n0DLevmsdS4QxtoZ3oLks5qzv0AgaJpZM4FrqMx .

maxtaco avatar Oct 14 '16 10:10 maxtaco

So I can start updating my profile with eddsa CSA keys?

linux-modder avatar Oct 14 '16 11:10 linux-modder

It should work but might be a little bit bumpy.

maxtaco avatar Oct 14 '16 12:10 maxtaco

nice

linux-modder avatar Oct 14 '16 19:10 linux-modder

If you like to live dangerously, feel free to test my branch with full cv25519/ed25519 support (expect for keygen) in it: https://github.com/zapu/kbpgp/tree/curve25519

zapu avatar Oct 27 '16 12:10 zapu

Just pinging people who might be interested in this - support for EDDSA+ECDH (along with Curve25519) keys in kbpgp has landed in master.

zapu avatar Nov 09 '16 22:11 zapu

Excuse my ignorance. Will this allow me to upload a Curve 25519 generated key? I still get an error when I try to upload through the web interface.

mrapplegate avatar Nov 09 '16 23:11 mrapplegate

We still have some more integration work to do, and we need Go support to.

maxtaco avatar Nov 09 '16 23:11 maxtaco

Ah ok. Thanks.

mrapplegate avatar Nov 09 '16 23:11 mrapplegate

Ah, sorry for the confusion, I didn't realize this is keybase-issues (not kbpgp repo) when I first posted my comment today.

zapu avatar Nov 09 '16 23:11 zapu

@maxtaco, please ping me on any testing work and when gui and cli support is fully there for uploads of cv/ed keys. I really rather upload my ed25519 key not the rsa4096 there now:)

linux-modder avatar Nov 11 '16 00:11 linux-modder

@linux-modder Support for cv25519/ed25519 landed a while ago, for both website and go client. I see that you some EC keys already. Let me know if you have any troubles.

zapu avatar Mar 30 '17 15:03 zapu

@zapu I might be doing something wrong, but I still can't import my key on Arch Linux (keybase 1.0.20):

lesderid@elsa ~> keybase pgp select
▶ INFO Forking background server with pid=28728
#    Algo   Key Id             Created   UserId
=    ====   ======             =======   ======
1    256?   5EC132DFA85DB372             Les De Ridder <[email protected]>, Les De Ridder <[email protected]>
Choose a key: 1
▶ ERROR ImportKey error: openpgp: unsupported feature: unsupported oid: 2b060104019755010501

lesderid avatar Mar 30 '17 15:03 lesderid