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

Unified Diff: webrtc/base/helpers.h

Issue 1528843005: Add support for GCM cipher suites from RFC 7714. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Feedback from Matt Created 4 years, 7 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: webrtc/base/helpers.h
diff --git a/webrtc/base/helpers.h b/webrtc/base/helpers.h
index 0e7937362a334c7cc29bc9a3ff203c1f7fec647c..7fef3d5eaeb53228f18ccb5d89d8bb5a4117e6d4 100644
--- a/webrtc/base/helpers.h
+++ b/webrtc/base/helpers.h
@@ -39,6 +39,10 @@ bool CreateRandomString(size_t length, std::string* str);
bool CreateRandomString(size_t length, const std::string& table,
std::string* str);
+// Generates (cryptographically) random data of the given length.
+// Return false if the random number generator failed.
+bool CreateRandomData(size_t length, void* data);
mattdr 2016/05/10 22:29:13 Let's avoid the buffer pointer and use a vector<ch
joachim 2016/05/10 23:09:44 Done (used std::string).
+
// Generates a (cryptographically) random UUID version 4 string.
std::string CreateRandomUuid();

Powered by Google App Engine
This is Rietveld 408576698