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

Unified Diff: crypto/hmac_nss.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
Index: crypto/hmac_nss.cc
diff --git a/crypto/hmac_nss.cc b/crypto/hmac_nss.cc
index 722fcf1c75741b038c1963725bfce776b91fcdd6..81b2e39610f3d9107243fd86925959c6afa56d67 100644
--- a/crypto/hmac_nss.cc
+++ b/crypto/hmac_nss.cc
@@ -73,7 +73,7 @@ bool HMAC::Init(const unsigned char *key, int key_length) {
return true;
}
-bool HMAC::Sign(const std::string& data,
+bool HMAC::Sign(const base::StringPiece& data,
unsigned char* digest,
int digest_length) const {
if (!plat_->sym_key_.get()) {
« crypto/hmac.h ('K') | « crypto/hmac_mac.cc ('k') | crypto/hmac_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698