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

Unified Diff: base/sha1.h

Issue 6661025: Add base::SHA1HashBytes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing wtc's comments Created 9 years, 9 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 | base/sha1_portable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sha1.h
diff --git a/base/sha1.h b/base/sha1.h
index dd4368688f183323daf0f54cad8cde6c3fde9434..80540c102c54d9afc58f6acc9e3e51b6d9f264c6 100644
--- a/base/sha1.h
+++ b/base/sha1.h
@@ -20,6 +20,11 @@ enum {
// hash.
std::string SHA1HashString(const std::string& str);
+// Computes the SHA-1 hash of the |len| bytes in |data| and puts the hash
+// in |hash|. |hash| must be SHA1_LENGTH bytes long.
+void SHA1HashBytes(const unsigned char* data, size_t len,
+ unsigned char* hash);
+
} // namespace base
#endif // BASE_SHA1_H_
« no previous file with comments | « no previous file | base/sha1_portable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698