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

Unified Diff: crypto/hmac_openssl.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_nss.cc ('k') | crypto/hmac_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/hmac_openssl.cc
diff --git a/crypto/hmac_openssl.cc b/crypto/hmac_openssl.cc
index 8b7b96d69b7a428ee267826b8fe10a080a19a1e5..74645c7849604446b6aad5bb75be8dd09973a1f2 100644
--- a/crypto/hmac_openssl.cc
+++ b/crypto/hmac_openssl.cc
@@ -40,7 +40,7 @@ HMAC::~HMAC() {
STLClearObject(&plat_->key);
}
-bool HMAC::Sign(const std::string& data,
+bool HMAC::Sign(const base::StringPiece& data,
unsigned char* digest,
int digest_length) const {
DCHECK_GE(digest_length, 0);
« crypto/hmac.h ('K') | « crypto/hmac_nss.cc ('k') | crypto/hmac_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698