Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: content/renderer/webcrypto/webcrypto_impl.cc

Issue 116963002: [refactor] delete CreateHmacAlgorithmByHashOutputLen(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/webcrypto/webcrypto_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>;
« no previous file with comments | « no previous file | content/renderer/webcrypto/webcrypto_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698