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