Index: content/child/webcrypto/webcrypto_util.cc |
diff --git a/content/child/webcrypto/webcrypto_util.cc b/content/child/webcrypto/webcrypto_util.cc |
index 410acdda7383eb3e7a2e275b323bcc1365e10d2c..5bdc6b9991d142fb8e0c95f75f36a8a0eaa4e835 100644 |
--- a/content/child/webcrypto/webcrypto_util.cc |
+++ b/content/child/webcrypto/webcrypto_util.cc |
@@ -137,6 +137,13 @@ blink::WebCryptoAlgorithm CreateRsaHashedImportAlgorithm( |
id, new blink::WebCryptoRsaHashedImportParams(CreateAlgorithm(hash_id))); |
} |
+blink::WebCryptoAlgorithm CreateEcImportAlgorithm( |
+ blink::WebCryptoAlgorithmId id, |
+ blink::WebCryptoNamedCurve named_curve) { |
+ return blink::WebCryptoAlgorithm::adoptParamsAndCreate( |
+ id, new blink::WebCryptoEcKeyImportParams(named_curve)); |
+} |
+ |
bool ContainsKeyUsages(blink::WebCryptoKeyUsageMask a, |
blink::WebCryptoKeyUsageMask b) { |
return (a & b) == b; |