Index: content/child/webcrypto/platform_crypto_nss.cc |
diff --git a/content/child/webcrypto/platform_crypto_nss.cc b/content/child/webcrypto/platform_crypto_nss.cc |
index 91a066f0e46a2fb93288d5473be01224a1558d71..3d0e9923a69f4185b2bdb2e4919fa2ff61e25204 100644 |
--- a/content/child/webcrypto/platform_crypto_nss.cc |
+++ b/content/child/webcrypto/platform_crypto_nss.cc |
@@ -1440,7 +1440,8 @@ Status EncryptDecryptAesGcm(EncryptOrDecrypt mode, |
Status GenerateRsaKeyPair(const blink::WebCryptoAlgorithm& algorithm, |
bool extractable, |
- blink::WebCryptoKeyUsageMask usage_mask, |
+ blink::WebCryptoKeyUsageMask public_key_usage_mask, |
+ blink::WebCryptoKeyUsageMask private_key_usage_mask, |
unsigned int modulus_length_bits, |
const CryptoData& public_exponent, |
blink::WebCryptoKey* public_key, |
@@ -1523,12 +1524,12 @@ Status GenerateRsaKeyPair(const blink::WebCryptoAlgorithm& algorithm, |
blink::WebCryptoKeyTypePublic, |
true, |
key_algorithm, |
- usage_mask); |
+ public_key_usage_mask); |
*private_key = blink::WebCryptoKey::create(private_key_handle.release(), |
blink::WebCryptoKeyTypePrivate, |
extractable, |
key_algorithm, |
- usage_mask); |
+ private_key_usage_mask); |
return Status::Success(); |
} |