| Index: content/child/webcrypto/openssl/aes_key_openssl.cc
|
| diff --git a/content/child/webcrypto/openssl/aes_key_openssl.cc b/content/child/webcrypto/openssl/aes_key_openssl.cc
|
| index 1f853b557a92df1ad300109a284363f490b63d7d..23cc4a29dff4dc1c2110eec1b5d0e0be92707c9d 100644
|
| --- a/content/child/webcrypto/openssl/aes_key_openssl.cc
|
| +++ b/content/child/webcrypto/openssl/aes_key_openssl.cc
|
| @@ -51,10 +51,11 @@ Status AesAlgorithm::GenerateKey(const blink::WebCryptoAlgorithm& algorithm,
|
| Status AesAlgorithm::VerifyKeyUsagesBeforeImportKey(
|
| blink::WebCryptoKeyFormat format,
|
| blink::WebCryptoKeyUsageMask usages) const {
|
| + bool checkEmptyUsage = true;
|
| switch (format) {
|
| case blink::WebCryptoKeyFormatRaw:
|
| case blink::WebCryptoKeyFormatJwk:
|
| - return CheckKeyCreationUsages(all_key_usages_, usages);
|
| + return CheckKeyCreationUsages(all_key_usages_, usages, checkEmptyUsage);
|
| default:
|
| return Status::ErrorUnsupportedImportKeyFormat();
|
| }
|
|
|