| 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 eebd9e071b445b39baec6ae805a7f52d6456405e..30d747ff8287468c138600246d0fcf49ae77c79a 100644
|
| --- a/content/child/webcrypto/platform_crypto_nss.cc
|
| +++ b/content/child/webcrypto/platform_crypto_nss.cc
|
| @@ -1281,7 +1281,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,
|
| const blink::WebCryptoAlgorithm& hash_or_null,
|
| @@ -1361,12 +1362,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();
|
| }
|
|
|