Index: content/child/webcrypto/webcrypto_impl.cc |
diff --git a/content/child/webcrypto/webcrypto_impl.cc b/content/child/webcrypto/webcrypto_impl.cc |
index 9d3897428bc302baf353767e0aa81ab9ceac26d9..0a80ce7e0a88abcdf0499eaacd0aca092ebe6e2c 100644 |
--- a/content/child/webcrypto/webcrypto_impl.cc |
+++ b/content/child/webcrypto/webcrypto_impl.cc |
@@ -137,9 +137,7 @@ void CompleteWithKeyOrError(const Status& status, |
bool IsAlgorithmAsymmetric(const blink::WebCryptoAlgorithm& algorithm) { |
// TODO(padolph): include all other asymmetric algorithms once they are |
// defined, e.g. EC and DH. |
- return (algorithm.id() == blink::WebCryptoAlgorithmIdRsaEsPkcs1v1_5 || |
- algorithm.id() == blink::WebCryptoAlgorithmIdRsaSsaPkcs1v1_5 || |
- algorithm.id() == blink::WebCryptoAlgorithmIdRsaOaep); |
+ return webcrypto::IsAlgorithmRsa(algorithm.id()); |
} |
// Gets a task runner for the current thread. The current thread is either: |