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 default value of the keyUsage parameter to the createKeyGenerator and createKeyDeriver methods is an empty list: not very useful. In practice this means all parameters must always be specified, meaning there is little point in specifying default values for any of them. Either: a) A more useful default (such as [ "encrypt", "decrypt", "sign", "verify" ]) should be specified b) keyUsage should be moved ahead of the other parameters, with no default specified c) no defaults should be specified for any of the parameters
It would be nice to have this addressed. The current function signatures are quite misleading and confusing.
I propose we remove the defaults
https://dvcs.w3.org/hg/webcrypto-api/rev/7df34800be54