-
Notifications
You must be signed in to change notification settings - Fork 814
[v6] Use WebCrypto for ed25519 and x25519 when available #1782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
712fe9c to
a6b41c5
Compare
As it implements a different RFC for non-deterministic signature generation
81b5136 to
dd28e0a
Compare
dd28e0a to
5c58334
Compare
|
Randomly failing CI tests on Safari as part of EdDSA WebCrypto's key generation assumed to be due to bad randomness/insufficient entropy, see e.g. https://stackoverflow.com/questions/26021181/not-enough-entropy-to-support-dev-random-in-docker-containers-running-in-boot2d . Edit: will try to repro / investigate this further and find a fix as the CI is consistently (but randomly) failing. |
…t scalar Fixes regression from changes in #1782, as the spec mandates that legacy x25519 store the secret scalar already clamped. Keys generated using v6.0.0-beta.3 are still expected to be functional, since the scalar is to be clamped before computing the ECDH shared secret.
…t scalar Fixes regression from changes in #1782, as the spec mandates that legacy x25519 store the secret scalar already clamped. Keys generated using v6.0.0-beta.3 are still expected to be functional, since the scalar is to be clamped before computing the ECDH shared secret.
|
We've temporarily reverted WebCrypto usage for X25519 (ccb040a) as Firefox has released support in v130, but something is broken with JWK imports: |
Support for curve25519 in WebCrypto has shipped by Safari, and is behind experimental flags in other major browsers (see https://wpt.fyi/results/WebCryptoAPI/generateKey?label=master&label=experimental&aligned&q=25519 for support).
The tweetnacl import is still inlined as the library is always used for key validation (until the curve is more widely implemented natively).