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

Side by Side Diff: src/platform/cryptohome/entropy_source.h

Issue 2051003: Initial patch from Will. (Closed) Base URL: ssh://git@chromiumos-git/chromiumos
Patch Set: Address style nits. Created 10 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698