| Index: content/child/webcrypto/nss/aes_key_nss.cc
|
| diff --git a/content/child/webcrypto/nss/aes_key_nss.cc b/content/child/webcrypto/nss/aes_key_nss.cc
|
| index 283ae37ba2890f7d968fb40bb768b106db667f78..242ee4c14f0af5918c144d7c9e194d4983910385 100644
|
| --- a/content/child/webcrypto/nss/aes_key_nss.cc
|
| +++ b/content/child/webcrypto/nss/aes_key_nss.cc
|
| @@ -39,7 +39,7 @@ Status AesAlgorithm::GenerateKey(const blink::WebCryptoAlgorithm& algorithm,
|
| bool extractable,
|
| blink::WebCryptoKeyUsageMask usages,
|
| GenerateKeyResult* result) const {
|
| - Status status = CheckKeyCreationUsages(all_key_usages_, usages);
|
| + Status status = CheckKeyCreationUsages(all_key_usages_, usages, false);
|
| if (status.IsError())
|
| return status;
|
|
|
| @@ -59,7 +59,7 @@ Status AesAlgorithm::VerifyKeyUsagesBeforeImportKey(
|
| switch (format) {
|
| case blink::WebCryptoKeyFormatRaw:
|
| case blink::WebCryptoKeyFormatJwk:
|
| - return CheckKeyCreationUsages(all_key_usages_, usages);
|
| + return CheckKeyCreationUsages(all_key_usages_, usages, false);
|
| default:
|
| return Status::ErrorUnsupportedImportKeyFormat();
|
| }
|
|
|