in-web-browsers icon indicating copy to clipboard operation
in-web-browsers copied to clipboard

Support for Curve25519 (Ed25519 X25519) in Web Cryptography APIs

Open lidel opened this issue 3 years ago • 2 comments

We are collaborating with Igalia on this. Filling issue so folks can subscribe for updates – I will edit details below to reflect current state.

  • Meta / specs
    • https://github.com/w3c/webcrypto/pull/362
    • https://github.com/WICG/webcrypto-secure-curves/issues/20
    • working on the issue about the deriveBits inconsistencies in the spec (https://github.com/w3c/webcrypto/issues/322)
    • blogpost: https://blogs.igalia.com/jfernandez/2023/06/20/secure-curves-in-the-web-cryptography-api/
    • [x] interoperability issues related to the deriveKey length
      • https://github.com/w3c/webcrypto/issues/322
      • https://github.com/w3c/webcrypto/issues/329
      • https://chromium-review.googlesource.com/c/chromium/src/+/5328466
    • [x] Web Platform Tests
      • https://github.com/web-platform-tests/wpt/pull/43400
      • https://github.com/web-platform-tests/wpt/pull/44719
      • https://github.com/web-platform-tests/wpt/pull/43751
  • [ ] Chromium
  • [ ] Firefox
    • [x] https://bugzilla.mozilla.org/show_bug.cgi?id=1804788
    • [ ] https://bugzilla.mozilla.org/show_bug.cgi?id=1889153 might be related, adds extra checks on "small order" detail mentioned in https://github.com/libp2p/specs/issues/593 (tbd if this is tested by WPT or not)
    • [ ] may be delayed by necessary NSS prework (https://bugzilla.mozilla.org/show_bug.cgi?id=1325335#c18)
      • [ ] NSS work wip: https://bugzilla.mozilla.org/show_bug.cgi?id=1325335
  • [ ] WebKit
    • [ ] https://bugs.webkit.org/show_bug.cgi?id=246145
    • [ ] https://bugs.webkit.org/show_bug.cgi?id=262613 → https://github.com/WebKit/WebKit/pull/21006
    • [ ] https://github.com/WebKit/WebKit/pull/5811
    • [x] https://github.com/WebKit/WebKit/pull/8691
    • [x] Safari 17.0 includes "Support for Ed25519 cryptography." https://webkit.org/blog/14445/webkit-features-in-safari-17-0/

lidel avatar Oct 21 '22 23:10 lidel

Igalia posted a fantastic blog post about current progress on Secure Curves in the Web Cryptography API:

  • https://blogs.igalia.com/jfernandez/2023/06/20/secure-curves-in-the-web-cryptography-api/

lidel avatar Jun 22 '23 16:06 lidel

  • Chromium
    • Both Ed25519 and X25519 implementation are completed, although behind a runtime flag
  • WebKit
    • Both Ed25519 and X25519 implementation are completed, although behind a runtime flag

javifernandez avatar Sep 26 '23 15:09 javifernandez