OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // EntropySource is the interface for objects that provide random bytes. |
| 6 |
| 7 #ifndef CRYPTOHOME_ENTROPY_SOURCE_H_ |
| 8 #define CRYPTOHOME_ENTROPY_SOURCE_H_ |
| 9 |
| 10 namespace cryptohome { |
| 11 |
| 12 class EntropySource { |
| 13 public: |
| 14 EntropySource() {} |
| 15 virtual ~EntropySource() {} |
| 16 |
| 17 virtual void GetSecureRandom(unsigned char *rand, int length) const = 0; |
| 18 }; |
| 19 |
| 20 } // namespace cryptohome |
| 21 |
| 22 #endif // CRYPTOHOME_ENTROPY_SOURCE_H_ |
OLD | NEW |