Description[webcryto] Validate key usages during key creation.
(1) Key creation (whether by importKey(), unwrapKey(), generateKey() now fails if the requested key usages are not applicable (for instance asking for 'sign' on an AES-CBC key).
(2) When generating a key pair, the public/private key get the intersection of supported usages and requested ones.
(3) The exceptions thrown during the import phase of unwrapKey() are now surfaced to the caller (bug 372944)
BUG=372040, 372944, 245025
R=rsleevi@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272630
Patch Set 1 : #
Total comments: 12
Patch Set 2 : Fail-fast rather than verifying usages after import #Patch Set 3 : Remove some DCHECK()s which no longer apply #Patch Set 4 : Rebase onto master #Patch Set 5 : Rebase onto removal of rsa-es changelist #Patch Set 6 : rebase on master #Messages
Total messages: 12 (0 generated)
|