Index: content/child/webcrypto/webcrypto_util.cc |
diff --git a/content/child/webcrypto/webcrypto_util.cc b/content/child/webcrypto/webcrypto_util.cc |
index bb4cbb9a4d0526312d2a7bb4ae8fd66bb0ab82f2..5e219dda4162d6b624365173ddf5b0a76e7ae0bc 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; |