summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authormmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-04 19:00:37 +0000
committermmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-04 19:00:37 +0000
commit301415ea99531af12cf34568c908fdbdd128bcda (patch)
treebeb76fa0ee445fa569e212dcfbe8222528fe739c /chrome
parent261d17188f9c63f82ea326f510c2fddb477c9c97 (diff)
downloadchromium_src-301415ea99531af12cf34568c908fdbdd128bcda.zip
chromium_src-301415ea99531af12cf34568c908fdbdd128bcda.tar.gz
chromium_src-301415ea99531af12cf34568c908fdbdd128bcda.tar.bz2
HMAC-SHA1 implementation for Mac based on CommonCrypto;
allow Windows HMAC-SHA1 to use keys longer than 16 bytes. Review URL: http://codereview.chromium.org/218 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1724 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_util.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_util.cc b/chrome/browser/safe_browsing/safe_browsing_util.cc
index 1731d75..9ddfbb3 100644
--- a/chrome/browser/safe_browsing/safe_browsing_util.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_util.cc
@@ -147,9 +147,9 @@ bool VerifyMAC(const std::string& key, const std::string& mac,
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))