| Index: content/child/webcrypto/webcrypto_util.cc
|
| diff --git a/content/child/webcrypto/webcrypto_util.cc b/content/child/webcrypto/webcrypto_util.cc
|
| index 4f8001ff4a0012e3d10e54c4c3cc806da4f06e61..6ea78f2f5e466078ee10f4e0e3784f1227a26a2f 100644
|
| --- a/content/child/webcrypto/webcrypto_util.cc
|
| +++ b/content/child/webcrypto/webcrypto_util.cc
|
| @@ -118,8 +118,6 @@ blink::WebCryptoAlgorithm CreateRsaHashedImportAlgorithm(
|
| blink::WebCryptoAlgorithmId id,
|
| blink::WebCryptoAlgorithmId hash_id) {
|
| DCHECK(blink::WebCryptoAlgorithm::isHash(hash_id));
|
| - DCHECK(id == blink::WebCryptoAlgorithmIdRsaSsaPkcs1v1_5 ||
|
| - id == blink::WebCryptoAlgorithmIdRsaOaep);
|
| return blink::WebCryptoAlgorithm::adoptParamsAndCreate(
|
| id, new blink::WebCryptoRsaHashedImportParams(CreateAlgorithm(hash_id)));
|
| }
|
| @@ -137,7 +135,8 @@ bool KeyUsageAllows(const blink::WebCryptoKey& key,
|
|
|
| bool IsAlgorithmRsa(blink::WebCryptoAlgorithmId alg_id) {
|
| return alg_id == blink::WebCryptoAlgorithmIdRsaOaep ||
|
| - alg_id == blink::WebCryptoAlgorithmIdRsaSsaPkcs1v1_5;
|
| + alg_id == blink::WebCryptoAlgorithmIdRsaSsaPkcs1v1_5 ||
|
| + alg_id == blink::WebCryptoAlgorithmIdRsaPss;
|
| }
|
|
|
| // The WebCrypto spec defines the default value for the tag length, as well as
|
|
|