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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_util.cc

Issue 218: HMAC-SHA1 implementation for Mac based on CommonCrypto (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 months 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 | « base/hmac_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_util.cc
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_util.cc (revision 1712)
+++ chrome/browser/safe_browsing/safe_browsing_util.cc (working copy)
@@ -147,9 +147,9 @@
std::string decoded_mac;
net::Base64Decode(mac_copy, &decoded_mac);
- HMAC hmac(HMAC::SHA1,
- reinterpret_cast<const unsigned char*>(decoded_key.data()),
- static_cast<int>(decoded_key.length()));
+ base::HMAC hmac(base::HMAC::SHA1,
+ reinterpret_cast<const unsigned char*>(decoded_key.data()),
+ static_cast<int>(decoded_key.length()));
const std::string data_str(data, data_length);
unsigned char digest[kSafeBrowsingMacDigestSize];
if (!hmac.Sign(data_str, digest, kSafeBrowsingMacDigestSize))
« no previous file with comments | « base/hmac_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698