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

Unified Diff: base/sha2.h

Issue 3214002: Add a term feature extractor for client-side phishing detection. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Add an extra comment/TODO about performance. Created 10 years, 3 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/sha2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sha2.h
diff --git a/base/sha2.h b/base/sha2.h
index 55e0609a819cc3763f6fa12a336e4fdadc5119b9..19e41c30b227a97f771e9d0ee522fc6fc55a8c73 100644
--- a/base/sha2.h
+++ b/base/sha2.h
@@ -23,6 +23,10 @@ enum {
// only 32 bytes (the full hash) are stored in the 'output' buffer.
void SHA256HashString(const std::string& str, void* output, size_t len);
+// Convenience version of the above that returns the result in a 32-byte
+// string.
+std::string SHA256HashString(const std::string& str);
+
} // namespace base
#endif // BASE_SHA2_H_
« no previous file with comments | « no previous file | base/sha2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698