This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
For instance if calling encrypt() with an AES-CBC algorithm, however provided a key for RSASSA. Perhaps InvalidAccessError, to match what the failure asymmetric algorithms are using when given the wrong key type?
This is specified as InvalidAccessError for some algorithms but not for others. The check could be done in the methods rather than per algorithm.
https://dvcs.w3.org/hg/webcrypto-api/rev/07185a01188e