Index: content/child/webcrypto/webcrypto_util.h |
diff --git a/content/child/webcrypto/webcrypto_util.h b/content/child/webcrypto/webcrypto_util.h |
index 9d23c73dead79cdd0e126607e8f195ba1e006327..98160b5ad166f4c01e483eb1ebf0f791839240e2 100644 |
--- a/content/child/webcrypto/webcrypto_util.h |
+++ b/content/child/webcrypto/webcrypto_util.h |
@@ -265,6 +265,13 @@ CONTENT_EXPORT blink::WebCryptoAlgorithm CreateAlgorithm( |
CONTENT_EXPORT blink::WebCryptoAlgorithm CreateHmacImportAlgorithm( |
blink::WebCryptoAlgorithmId hash_id); |
+// Creates an import algorithm for RSA algorithms that take a hash. |
+// It is an error to call this with a hash_id that is not a SHA*. |
+CONTENT_EXPORT blink::WebCryptoAlgorithm CreateRsaHashedImportAlgorithm( |
+ blink::WebCryptoAlgorithmId id, |
+ blink::WebCryptoAlgorithmId hash_id); |
+ |
+// TODO(eroman): Move these to jwk.cc |
// Creates an RSASSA-PKCS1-v1_5 algorithm. It is an error to call this with a |
// hash_id that is not a SHA*. |
blink::WebCryptoAlgorithm CreateRsaSsaImportAlgorithm( |