This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The specification for ECDH importKey states for importKey https://dvcs.w3.org/hg/webcrypto-api/raw-file/0a08958cf50f/spec/Overview.html#ecdh-operations Import Key 2. If format is "spki" ... 4. If the parameters field of the algorithm AlgorithmIdentifier field of spki is absent, then return an error named SyntaxError However, the corresponding errors returned for other ASN.1 related encoding errors are all DataError, as they are for the similar clause in the ECDSA importKey - https://dvcs.w3.org/hg/webcrypto-api/raw-file/0a08958cf50f/spec/Overview.html#ecdsa-operations - which states a DataError is returned For consistency, all of the SPKI errors should be DataErrors if related to ASN.1 issues.
https://dvcs.w3.org/hg/webcrypto-api/rev/d1693395d37e