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

Unified Diff: base/sha1.h

Issue 6661025: Add base::SHA1HashBytes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually, base/sha1_win.cc is not used, so don't touch it 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') | base/sha1_portable.cc » ('J')
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..21f07778353aaaec0cc39a9d3e3007a45432c9fe 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_array|.
+void SHA1HashBytes(const unsigned char* data, size_t len,
+ unsigned char* hash_array);
wtc 2011/03/11 18:46:15 Nit: |hash_array| can be shortened to |hash|. Ple
hans 2011/03/13 19:48:16 done
+
} // namespace base
#endif // BASE_SHA1_H_
« no previous file with comments | « no previous file | base/sha1_portable.cc » ('j') | base/sha1_portable.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698