diff options
author | lloyd <[email protected]> | 2010-04-23 21:16:29 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-04-23 21:16:29 +0000 |
commit | 13c00b2b2fafe5a34ab7b76d24139bae50159386 (patch) | |
tree | c13d125bc961db5a8c0f48a09d00345bf6c9f830 /src/rng/rng.h | |
parent | ee0b59706f1cfc785a7651ad37fad3487055eb3e (diff) |
Add add_entropy_vec which calls add_entropy on the passed vector. Has
to be named differently from add_entropy to deal with odd C++
overloading/virtual rules.
Diffstat (limited to 'src/rng/rng.h')
-rw-r--r-- | src/rng/rng.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rng/rng.h b/src/rng/rng.h index c53d8e22d..e0c361fd5 100644 --- a/src/rng/rng.h +++ b/src/rng/rng.h @@ -74,6 +74,9 @@ class BOTAN_DLL RandomNumberGenerator */ virtual void add_entropy(const byte in[], u32bit length) = 0; + void add_entropy_vec(const MemoryRegion<byte>& vec) + { add_entropy(&vec[0], vec.size()); } + RandomNumberGenerator() {} virtual ~RandomNumberGenerator() {} private: |