diff options
author | lloyd <[email protected]> | 2008-05-24 18:58:20 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-05-24 18:58:20 +0000 |
commit | c66c9ad30fc635f25a0564ad8b7722fceda92a73 (patch) | |
tree | 393246cf9e13f1928bfeb0cd8e0e670c84296e8f | |
parent | 0d31ffcbc89d232e2682110733ca2d969af1e15e (diff) |
Remove version of OctetString::change that used global PRNG
-rw-r--r-- | include/symkey.h | 3 | ||||
-rw-r--r-- | src/symkey.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/symkey.h b/include/symkey.h index ba77a94a4..93946d12d 100644 --- a/include/symkey.h +++ b/include/symkey.h @@ -29,12 +29,11 @@ class BOTAN_DLL OctetString void set_odd_parity(); - void change(u32bit); void change(const std::string&); void change(const byte[], u32bit); void change(const MemoryRegion<byte>& in) { bits = in; } - OctetString(u32bit len) { change(len); } + OctetString(u32bit len); OctetString(const std::string& str = "") { change(str); } OctetString(const byte in[], u32bit len) { change(in, len); } OctetString(const MemoryRegion<byte>& in) { change(in); } diff --git a/src/symkey.cpp b/src/symkey.cpp index db70810fb..b5ddb6af9 100644 --- a/src/symkey.cpp +++ b/src/symkey.cpp @@ -15,7 +15,7 @@ namespace Botan { /************************************************* * Create an OctetString from RNG output * *************************************************/ -void OctetString::change(u32bit length) +OctetString::OctetString(u32bit length) { bits.create(length); global_state().randomize(bits, length); |