| 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 89e208666f97715077ace1b16fc9bc3d9c819711..570f8c8d7dc5964291b7606d69d2dbc4baf25edb 100644
|
| --- a/content/child/webcrypto/nss/hmac_nss.cc
|
| +++ b/content/child/webcrypto/nss/hmac_nss.cc
|
| @@ -58,7 +58,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);
|
| if (status.IsError())
|
| return status;
|
|
|
| @@ -86,7 +86,7 @@ class HmacImplementation : public AlgorithmImplementation {
|
| switch (format) {
|
| case blink::WebCryptoKeyFormatRaw:
|
| case blink::WebCryptoKeyFormatJwk:
|
| - return CheckKeyCreationUsages(kAllKeyUsages, usages);
|
| + return CheckKeyCreationUsages(kAllKeyUsages, usages, false);
|
| default:
|
| return Status::ErrorUnsupportedImportKeyFormat();
|
| }
|
|
|