| Index: content/child/webcrypto/structured_clone.cc
|
| diff --git a/content/child/webcrypto/structured_clone.cc b/content/child/webcrypto/structured_clone.cc
|
| index 68d449a065ecf7186b4ba17e587a9293aeb7ee57..f4c0b205a6f6801729d7326a39c0e145547662c4 100644
|
| --- a/content/child/webcrypto/structured_clone.cc
|
| +++ b/content/child/webcrypto/structured_clone.cc
|
| @@ -44,11 +44,15 @@ blink::WebCryptoAlgorithm KeyAlgorithmToImportAlgorithm(
|
| case blink::WebCryptoKeyAlgorithmParamsTypeRsaHashed:
|
| return CreateRsaHashedImportAlgorithm(
|
| algorithm.id(), algorithm.rsaHashedParams()->hash().id());
|
| + case blink::WebCryptoKeyAlgorithmParamsTypeEc:
|
| + return CreateEcImportAlgorithm(algorithm.id(),
|
| + algorithm.ecParams()->namedCurve());
|
| case blink::WebCryptoKeyAlgorithmParamsTypeNone:
|
| break;
|
| default:
|
| break;
|
| }
|
| + NOTREACHED();
|
| return blink::WebCryptoAlgorithm::createNull();
|
| }
|
|
|
| @@ -87,10 +91,14 @@ bool ValidateDeserializedKey(const blink::WebCryptoKey& key,
|
| 0)
|
| return false;
|
| break;
|
| + case blink::WebCryptoKeyAlgorithmParamsTypeEc:
|
| + return algorithm.ecParams()->namedCurve() ==
|
| + key.algorithm().ecParams()->namedCurve();
|
| case blink::WebCryptoKeyAlgorithmParamsTypeNone:
|
| case blink::WebCryptoKeyAlgorithmParamsTypeHmac:
|
| break;
|
| default:
|
| + NOTREACHED();
|
| return false;
|
| }
|
|
|
|
|