Chromium Code Reviews| Index: content/child/webcrypto/nss/hmac_nss.cc |
| diff --git a/content/child/webcrypto/nss/hmac_nss.cc b/content/child/webcrypto/nss/hmac_nss.cc |
| index bb146d4977708f8572ecee0207d3643629bb3749..7df70a5906c179e505a2227766de9d374dadb1c9 100644 |
| --- a/content/child/webcrypto/nss/hmac_nss.cc |
| +++ b/content/child/webcrypto/nss/hmac_nss.cc |
| @@ -59,7 +59,7 @@ class HmacImplementation : public AlgorithmImplementation { |
| bool extractable, |
| blink::WebCryptoKeyUsageMask usages, |
| GenerateKeyResult* result) const override { |
| - Status status = CheckKeyCreationUsages(kAllKeyUsages, usages); |
| + Status status = CheckKeyCreationUsages(kAllKeyUsages, usages, false); |
|
eroman
2014/12/09 21:04:46
Same here.
Habib Virji
2014/12/15 18:48:55
Done.
|
| if (status.IsError()) |
| return status; |
| @@ -87,7 +87,7 @@ class HmacImplementation : public AlgorithmImplementation { |
| switch (format) { |
| case blink::WebCryptoKeyFormatRaw: |
| case blink::WebCryptoKeyFormatJwk: |
| - return CheckKeyCreationUsages(kAllKeyUsages, usages); |
| + return CheckKeyCreationUsages(kAllKeyUsages, usages, true); |
| default: |
| return Status::ErrorUnsupportedImportKeyFormat(); |
| } |