Index: content/renderer/webcrypto/webcrypto_impl.cc |
diff --git a/content/renderer/webcrypto/webcrypto_impl.cc b/content/renderer/webcrypto/webcrypto_impl.cc |
index 4e343ba873ad8cb5fb9f45d874a58c543bdfbc48..5d5a1415bb13cf28d5255cd384496e166831419d 100644 |
--- a/content/renderer/webcrypto/webcrypto_impl.cc |
+++ b/content/renderer/webcrypto/webcrypto_impl.cc |
@@ -56,14 +56,14 @@ class JwkAlgorithmFactoryMap { |
public: |
JwkAlgorithmFactoryMap() { |
map_["HS256"] = |
- &BindAlgFactoryWithKeyLen<webcrypto::CreateHmacAlgorithmByHashOutputLen, |
- 256>; |
+ &BindAlgFactoryAlgorithmId<webcrypto::CreateHmacAlgorithmByHashId, |
+ blink::WebCryptoAlgorithmIdSha256>; |
map_["HS384"] = |
- &BindAlgFactoryWithKeyLen<webcrypto::CreateHmacAlgorithmByHashOutputLen, |
- 384>; |
+ &BindAlgFactoryAlgorithmId<webcrypto::CreateHmacAlgorithmByHashId, |
+ blink::WebCryptoAlgorithmIdSha384>; |
map_["HS512"] = |
- &BindAlgFactoryWithKeyLen<webcrypto::CreateHmacAlgorithmByHashOutputLen, |
- 512>; |
+ &BindAlgFactoryAlgorithmId<webcrypto::CreateHmacAlgorithmByHashId, |
+ blink::WebCryptoAlgorithmIdSha512>; |
map_["RS256"] = |
&BindAlgFactoryAlgorithmId<webcrypto::CreateRsaSsaAlgorithm, |
blink::WebCryptoAlgorithmIdSha256>; |