Index: content/child/webcrypto/webcrypto_util.h |
diff --git a/content/child/webcrypto/webcrypto_util.h b/content/child/webcrypto/webcrypto_util.h |
index 3c82da96ec71d6211b739b021b679c7090a5ddf9..50e61a277b849f54252130969de2ff59af7ae0c6 100644 |
--- a/content/child/webcrypto/webcrypto_util.h |
+++ b/content/child/webcrypto/webcrypto_util.h |
@@ -237,6 +237,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( |