WICG / webcrypto-secure-curves

Proposal for the addition of Curve25519 and Curve448 to the Web Cryptography API
https://wicg.github.io/webcrypto-secure-curves/
Other
40 stars 3 forks source link

Reject invalid EdDSA points on key import #17

Closed twiss closed 1 year ago

twiss commented 1 year ago

(This PR is on top of #13. See 96fd46d19acbe8509801075e595f4e782f497ec7 for the actual change.)

Check for invalid points during EdDSA key import (instead of allowing the key to be imported and then returning false for any verifications). This is equivalent to the ECDSA checks already done in Web Crypto in various places ("If the public/private key value is not a valid point on the Elliptic Curve identified by the namedCurve member of normalizedAlgorithm throw a DataError").


Preview | Diff

twiss commented 1 year ago

Closing in favor of #21.