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_ |