Skip to content

ED25519 Support #3509

Closed
Closed

Description

@atagar

Hi there. Sorry if there's another issue tracking this. Presently Stem (part of Tor) is using PyNaCl to validate ed25519 certificates.

We use cryptography elsewhere and would love to use it for this too once there's support so we can drop the extra dependency. An email from January suggested this might be coming so just filing a tracking issue for us to watch so we know when we can switch.

If we should be following something else instead then feel free to resolve in favor of that.

Thanks! -Damian

Activity

  1. alex commented on Apr 20, 2017

    @alex
    Member

    This won't happen until OpenSSL has ed25519 support: openssl/openssl#487

    This can stay open, as none of our other tracking issues cover ed25519

  2. atagar commented on Apr 20, 2017

    @atagar
    Author

    Damn that was quick. Thanks Alex!

    Filed a tracking issue on our end to take advantage of this once it's available. Looking forward to it! :P

    https://trac.torproject.org/projects/tor/ticket/22022

  3. joelio commented on May 3, 2017

    @joelio

    +1 for this

  4. himikof commented on Jun 16, 2017

    @himikof

    Ed25519 support was recently merged in OpenSSL master: openssl/openssl#3503.

  5. reaperhulk commented on Jun 16, 2017

    @reaperhulk
    Member

    Yep, we'll be implementing this when 1.1.1 is released.

  6. atagar commented on Jun 16, 2017

    @atagar
    Author

    Wonderful, thanks!

  7. reaperhulk commented on Jun 18, 2017

    @reaperhulk
    Member

    I went ahead and implemented this as an experiment today: master...reaperhulk:ed25519

    That is a WIP patch. It passes all tests, but there's no support for serialization of private keys, public key serialization is bare bytes only, and there's insufficient documentation. The API structure for loading/serializing probably needs a look as well since we'll likely want to support PKCS8. Also, to use this you'll have to compile against OpenSSL 1.1.1-dev (which means cloning current git master, building it, and successfully linking against it instead of whatever other OpenSSL you may have resident on your system)

  8. MaggieLplus commented on Jun 21, 2017

    @MaggieLplus

    Ed25519 TLS support was also merged to OpenSSL master: openssl/openssl#3585

  9. reopened this on Dec 10, 2018
  10. 1 remaining item

  11. removed this from the Twenty Fifth Release milestone on Jan 18, 2019
  12. johnnybubonic commented on Jan 18, 2019

    @johnnybubonic

    thank you! excited to see this hit!

  13. wenottingham commented on Feb 18, 2019

    @wenottingham

    a bug fix release of OpenSSL 1.1.1 comes out to correct an issue we found in our testing.

    Is this tracked somewhere public on the OpenSSL side?

  14. reaperhulk commented on Feb 19, 2019

    @reaperhulk
    Member

    openssl/openssl#7706 and openssl/openssl#7693 are the issues I opened (and they link to the PRs that fix the bugs).

  15. reaperhulk commented on Feb 20, 2019

    @reaperhulk
    Member

    Release is scheduled for next week: https://mta.openssl.org/pipermail/openssl-announce/2019-February/000145.html

    Once that release comes out we can dust off the ed25519 and ed448 PRs, get them landed, and get a release out that adds support.

  16. ronf commented on Feb 20, 2019

    @ronf

    Looking forward to it!

    Is there documentation available for what the API will look like here?

    I'd also like to do some testing of what you have right now vs. the implementation I'm currently using from libnacl to see if I can make them interoperate.

  17. reaperhulk commented on Feb 20, 2019

    @reaperhulk
    Member

    The API will look effectively identical to x25519/x448 but with sign/verify methods. You can see old PRs #4114 and #4610. Both of them need to be rebased and updated to match the serialization supported on the x25519/x448 side.

  18. ronf commented on Feb 20, 2019

    @ronf

    Great, thanks! I've already updated my curve25519/curve448 implementation to use the new serialization support for x25519/x448 in PyCA 2.5 and it's working well for doing ECDH. If similar public & private key classes are used but with sign() and verify() methods, I think that should work as long as I have a way to get the signature as a raw byte string (64 bytes in the Ed25519 case, or 114 bytes if I remember right for Ed448).

  19. reaperhulk commented on Feb 20, 2019

    @reaperhulk
    Member

    Yeah the EdDSA signatures created by OpenSSL have no additional ASN.1 structure around them so the resulting byte strings should be what you expect.

  20. ronf commented on Mar 6, 2019

    @ronf

    I'm happy to report that both Ed25519 and Ed448 are now working in AsyncSSH using the support added to the PyCA 2.6.1 release last week. This is now released as part of AsyncSSH 1.16.0.

  21. locked as resolved and limited conversation to collaborators on Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions