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

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: sigh-nedness 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') | base/crypto/symmetric_key_mac.cc » ('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 ce98fa6a5e4e390d5d84daab1317df890e529718..7aa2279c57716a7fd9c72919bccd23f0657b5e39 100644
--- a/base/crypto/symmetric_key.h
+++ b/base/crypto/symmetric_key.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -33,6 +33,9 @@ class 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') | base/crypto/symmetric_key_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698