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

Unified Diff: base/crypto/symmetric_key.h

Issue 6683060: Private API for extensions like ssh-client that need access to TCP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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/crypto/symmetric_key_mac.cc » ('j') | chrome/browser/extensions/extension_apitest.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/crypto/symmetric_key.h
diff --git a/base/crypto/symmetric_key.h b/base/crypto/symmetric_key.h
index b72c840614f6df03ecd658452a9e0b81c86498ab..f7311b39960faedad78ac702bc3ab6b5fdf90512 100644
--- a/base/crypto/symmetric_key.h
+++ b/base/crypto/symmetric_key.h
@@ -34,6 +34,9 @@ class BASE_API SymmetricKey {
virtual ~SymmetricKey();
+ // Generates cryptographically strong random bytes. Returns true on success.
+ static bool GenerateRandomBytes(size_t size_in_bits, uint8* out);
+
// Generates a random key suitable to be used with |algorithm| and of
// |key_size_in_bits| bits.
// The caller is responsible for deleting the returned SymmetricKey.
« no previous file with comments | « no previous file | base/crypto/symmetric_key_mac.cc » ('j') | chrome/browser/extensions/extension_apitest.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698