| Index: components/webcrypto/algorithms/ec.cc
|
| diff --git a/components/webcrypto/algorithms/ec.cc b/components/webcrypto/algorithms/ec.cc
|
| index 1436ad19b57b64ccd95ed1385af568881230e5cb..2a6d312de3a65d3046511e55e53b419b2051df76 100644
|
| --- a/components/webcrypto/algorithms/ec.cc
|
| +++ b/components/webcrypto/algorithms/ec.cc
|
| @@ -656,6 +656,9 @@ Status EcAlgorithm::DeserializeKeyForClone(
|
| blink::WebCryptoKeyUsageMask usages,
|
| const CryptoData& key_data,
|
| blink::WebCryptoKey* key) const {
|
| + if (algorithm.paramsType() != blink::WebCryptoKeyAlgorithmParamsTypeEc)
|
| + return Status::ErrorUnexpected();
|
| +
|
| blink::WebCryptoAlgorithm import_algorithm =
|
| SynthesizeImportAlgorithmForClone(algorithm);
|
|
|
|
|