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

Unified Diff: crypto/hmac_win.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_openssl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/hmac_win.cc
diff --git a/crypto/hmac_win.cc b/crypto/hmac_win.cc
index 1e6954a4cad5a494d371168ddb2181fae7ec7dec..34facc582119c7b02e3ffab33edf89cc070c0bd7 100644
--- a/crypto/hmac_win.cc
+++ b/crypto/hmac_win.cc
@@ -154,7 +154,7 @@ bool HMAC::Init(const unsigned char* key, int key_length) {
HMAC::~HMAC() {
}
-bool HMAC::Sign(const std::string& data,
+bool HMAC::Sign(const base::StringPiece& data,
unsigned char* digest,
int digest_length) const {
if (hash_alg_ == SHA256) {
« crypto/hmac.h ('K') | « crypto/hmac_openssl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698