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

Unified Diff: crypto/hmac_mac.cc

Issue 7033035: Change HMAC::Sign() to take base::StringPiece instead of string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix it Created 9 years, 7 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
« crypto/hmac.h ('K') | « crypto/hmac.h ('k') | crypto/hmac_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/hmac_mac.cc
diff --git a/crypto/hmac_mac.cc b/crypto/hmac_mac.cc
index fefd6e7503fc1a920ce290e1235c81dffb806ef7..f9a00cda8adaab7da1a65f24187b5b6f0a70e812 100644
--- a/crypto/hmac_mac.cc
+++ b/crypto/hmac_mac.cc
@@ -39,7 +39,7 @@ HMAC::~HMAC() {
plat_->key_.reserve(0);
}
-bool HMAC::Sign(const std::string& data,
+bool HMAC::Sign(const base::StringPiece& data,
unsigned char* digest,
int digest_length) const {
CCHmacAlgorithm algorithm;
« crypto/hmac.h ('K') | « crypto/hmac.h ('k') | crypto/hmac_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698