-
eroman@chromium.org authored
(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 Review URL: https://codereview.chromium.org/282133002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272630 0039d316-1c4b-4281-b951-d872f2087c98
9c2e9cf7