Skip to content

add support for Ed25519 #39

Closed
Closed

Activity

  1. bagder commented on Aug 9, 2015

    @bagder
    Member

    Feel free to send us patches!

  2. vijfhoek commented on Sep 27, 2016

    @vijfhoek

    Has there been any progress or plans on this since this issue was submitted?

    I can try taking a look at this if you want, even though I don't really have any experience in cryptography.

  3. bagder commented on Sep 27, 2016

    @bagder
    Member

    Please go ahead. I figure there should be existing code in OpenSSH and elsewhere to use to test against and to get inspiration from (or even plain borrowed if the license allows it).

  4. willco007 commented on Sep 27, 2016

    @willco007
    Member

    Unfortunately OpenSSL doesn't include ED25519 so we'd have to roll our own. I've looked at porting the logic from other libraries and it's non-trivial due to heavy use of custom data types and logic. The cleanest port would probably come from libssh if you're willing to take a crack at it (license allowing).

  5. bagder commented on Sep 27, 2016

    @bagder
    Member

    libssh uses the LGPLv2 license so we cannot just use their code, we'd need to get their (the copyright holders') permission to re- license the code to a BSD license. OpenSSH is probably more suitably licensed...

  6. willco007 commented on Sep 27, 2016

    @willco007
    Member

    OpenSSH is not thread safe and porting their code to libssh2 is rough. You could look at BoringSSLs implementation, but it makes heavy use of custom data types as it's based on OpenSSL. This is also worth looking at as it's straight C: https://github.com/orlp/ed25519

  7. carloscabanero commented on Nov 14, 2016

    @carloscabanero

    Hi! I'm Carlos, from Blink Shell. Blink uses libssh2 under the hood as a full shell and to open connections for Mosh. Thanks a lot for your hard work!

    We need this for blinksh/blink#60. I wanted to get on it myself in a couple weeks, but I was also considering to hire someone. So if someone is up to the task, or knows someone, please ping me on Twitter @BlinkShell.

    Thanks!

  8. carloscabanero commented on Nov 14, 2016

    @carloscabanero

    Also, forgot to mention. If any of the contributors of libssh2 wants to try Blink (and don't want to build it), just hit me up on Twitter @BlinkShell and I will get you rolling :)

  9. denji commented on Nov 25, 2016

    @denji
  10. yan12125 commented on Mar 11, 2017

    @yan12125

    As @willco007 said, BoringSSL has ED25519-related algorithms. Do you think introducing BoringSSL as a dependency is a good idea? I implemented a partial patch for ED25519 private key support at https://github.com/yan12125/libssh2/tree/boringssl-ed25519. I've succcessfully used my fork to pull and push to some git repositories with my ED25519 private key.

    There are a few limitations:

    • Pass phrases are not supported yet. Because I don't use pass phrases so I skipped it. I guess it won't be too hard.
    • Only file-based key paris are supported. Similarly, I don't know how in-memory keys should be organized.
    • Only the CMake build system is supported. CMake is easier for me; autotools are aliens :(

    Also, as I have little experience on implementing security-related softwares, beware that my patch may contain vulnerabilities.

    For users on Arch, you can install my AUR package https://aur.archlinux.org/packages/libssh2-boringssl-ed25519-git/ to replace the official libssh2 package.

  11. willco007 commented on Mar 13, 2017

    @willco007
    Member

    My employer has slated some dev time for me to look at ED25519 support within the next month or so. I plan on looking into this further then. I personally would like a stand alone version of 25519 support rather than adding a BoringSSL backend; but we'll see if I can manage to get something working.

  12. willco007 commented on May 12, 2017

    @willco007
    Member

    Good news, so I have this implemented on my private fork. I'm using BoringSSL's curve implementation plus OpenBSDs bcrypt pbkdf related files; both of whose licenses are compatible with libssh2. I also implemented the new OpenSSH key file format parsing which is required for ed25519 key support.

    Using the BoringSSL files currently relies on the OpenSSL backend. Looking at the source, it looks like it could be easily ported away from the hand full of OpenSSL specific functions (sha and rand), but I have little interest in doing that work. At the moment; I can't even guarantee my work will build using other crypto backends, yet alone not crash, so I'm not sure how we'd like to proceed. Any thoughts?

  13. willco007 commented on May 13, 2017

    @willco007
    Member

    Also, thanks to @yan12125 for the head-start on full ed25519 support; it was a great jumping off point. :)

  14. 4 remaining items

  15. topilski commented on Mar 6, 2018

    @topilski

    Any news? i have a lot of clients who waiting Ed25519 support.

  16. willco007 commented on Mar 6, 2018

    @willco007
    Member

    Still waiting on someone to land the ECDSA work; which is holding up the ED25519 work.

  17. topilski commented on Mar 23, 2018

    @topilski

    Maybe you have some deadlines for this issue?

  18. willco007 commented on Mar 23, 2018

    @willco007
    Member

    @topilski My ECDSA key work was recently landed which opens the door for a PR for ED25519 support. However, I don't have an ETA at the moment do to my distinct lack of time. I will try and make some time in the coming weeks to start on a PR for it, but the changes are involved so it may take a little while.

  19. added a commit that references this issue on Aug 2, 2018
  20. tuxayo commented on Oct 23, 2018

    @tuxayo
  21. 50nar commented on Nov 10, 2018

    @50nar

    So openssl supports now ed25519, does libssh2 ? Would compiling libssh2 master branch give support to ed22519 ?

  22. willco007 commented on Nov 10, 2018

    @willco007
    Member

    @yar05, yes it's on master. I suppose we should close this bug. 🙂

  23. 50nar commented on Nov 10, 2018

    @50nar

    w00t w00t ! Perfect, just compiled and it works ! Brilliant.

  24. added a commit that references this issue on Dec 14, 2018
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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions