| Index: components/webcrypto/algorithms/rsa.cc
|
| diff --git a/components/webcrypto/algorithms/rsa.cc b/components/webcrypto/algorithms/rsa.cc
|
| index bd3be5ba159abc1e472b32e889ab89e2d009202f..35053d889c9badf2076b72b0a6bc7925fcbba6bf 100644
|
| --- a/components/webcrypto/algorithms/rsa.cc
|
| +++ b/components/webcrypto/algorithms/rsa.cc
|
| @@ -532,6 +532,9 @@ Status RsaHashedAlgorithm::DeserializeKeyForClone(
|
| blink::WebCryptoKeyUsageMask usages,
|
| const CryptoData& key_data,
|
| blink::WebCryptoKey* key) const {
|
| + if (algorithm.paramsType() != blink::WebCryptoKeyAlgorithmParamsTypeRsaHashed)
|
| + return Status::ErrorUnexpected();
|
| +
|
| blink::WebCryptoAlgorithm import_algorithm =
|
| SynthesizeImportAlgorithmForClone(algorithm);
|
|
|
|
|