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

Unified Diff: crypto/hmac.h

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
« no previous file with comments | « no previous file | crypto/hmac_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/hmac.h
diff --git a/crypto/hmac.h b/crypto/hmac.h
index c0706d8ebcf17d337ec16a293547dacdab7e0039..c98a0283fd7465d3b9ced8433642bb672f7632f0 100644
--- a/crypto/hmac.h
+++ b/crypto/hmac.h
@@ -13,6 +13,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "base/string_piece.h"
namespace crypto {
@@ -51,8 +52,7 @@ class HMAC {
// to the constructor and the key supplied to the Init method. The HMAC is
// returned in |digest|, which has |digest_length| bytes of storage available.
// TODO(abarth): digest_length should be a size_t.
- bool Sign(const std::string& data,
- unsigned char* digest,
+ bool Sign(const base::StringPiece& data, unsigned char* digest,
int digest_length) const;
// TODO(albertb): Add a Verify method.
« no previous file with comments | « no previous file | crypto/hmac_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698