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

Unified Diff: crypto/sha2.h

Issue 1261333004: Add support for Flash Player Component updates on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/sha2.h
diff --git a/crypto/sha2.h b/crypto/sha2.h
index 7e279d3e943837dfc72f15ca6bb55c339de529a3..a0addfb5f06a59c453507827d9a0dd08f4376062 100644
--- a/crypto/sha2.h
+++ b/crypto/sha2.h
@@ -28,6 +28,13 @@ CRYPTO_EXPORT void SHA256HashString(const base::StringPiece& str,
// string.
CRYPTO_EXPORT std::string SHA256HashString(const base::StringPiece& str);
+// Computes the SHA-256 hash of the |len| bytes in |data| and puts the hash
+// in |hash|. |hash| must be out_len bytes long.
+CRYPTO_EXPORT void SHA256HashBytes(const uint8_t* data,
+ size_t len,
+ void* output,
+ size_t out_len);
+
} // namespace crypto
#endif // CRYPTO_SHA2_H_

Powered by Google App Engine
This is Rietveld 408576698