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

Unified Diff: crypto/hmac.h

Issue 6683060: Private API for extensions like ssh-client that need access to TCP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: c 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.h
diff --git a/crypto/hmac.h b/crypto/hmac.h
index 7852797b20dc71fc1d96672e44f4cc1b04f27c56..40151f3761f1c3d270ab9b6a7f648d4f8dd8dae0 100644
--- a/crypto/hmac.h
+++ b/crypto/hmac.h
@@ -51,7 +51,8 @@ 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, int digest_length);
+ bool Sign(
+ const std::string& data, unsigned char* digest, int digest_length) const;
wtc 2011/05/16 23:23:29 Nit: the Style Guide seems to recommend we format
Denis Lagno 2011/05/17 22:15:08 Done.
// TODO(albertb): Add a Verify method.

Powered by Google App Engine
This is Rietveld 408576698