[refactor] delete CreateHmacAlgorithmByHashOutputLen().
BUG=245025
Review URL: https://codereview.chromium.org/116963002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241195 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/renderer/webcrypto/webcrypto_impl.cc b/content/renderer/webcrypto/webcrypto_impl.cc
index 4e343ba8..5d5a1415 100644
--- a/content/renderer/webcrypto/webcrypto_impl.cc
+++ b/content/renderer/webcrypto/webcrypto_impl.cc
@@ -56,14 +56,14 @@
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>;