Index: content/child/webcrypto/openssl/hmac_openssl.cc |
diff --git a/content/child/webcrypto/openssl/hmac_openssl.cc b/content/child/webcrypto/openssl/hmac_openssl.cc |
index b5ef788d90a5574d1a93a85e900fb41b23f0c2f0..60160e996096f4ab47367291f3642f18ae59f7a6 100644 |
--- a/content/child/webcrypto/openssl/hmac_openssl.cc |
+++ b/content/child/webcrypto/openssl/hmac_openssl.cc |
@@ -69,7 +69,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; |
@@ -92,7 +92,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(); |
} |