The unified diff between revisions [53e41f9c..] and [8ef9c5a3..] is displayed below. It can also be downloaded as a raw diff.
#
#
# patch "include/base.h"
# from [d732a31be3006252b4eff8aede08f960ef4e16a8]
# to [24b5e5a658b03e4df9d33b74f2c7688335b2cbdf]
#
# patch "include/rng.h"
# from [0f20ace59cb400d38fbf9ff6e96f305b39e59418]
# to [79796317eeefa9e0d7aaa70f0351c0638d41a6d2]
#
============================================================
--- include/base.h d732a31be3006252b4eff8aede08f960ef4e16a8
+++ include/base.h 24b5e5a658b03e4df9d33b74f2c7688335b2cbdf
@@ -49,7 +49,7 @@ class BOTAN_DLL BlockCipher : public Sym
void decrypt(byte block[]) const { dec(block, block); }
virtual BlockCipher* clone() const = 0;
- virtual void clear() throw() {};
+ virtual void clear() throw() = 0;
BlockCipher(u32bit, u32bit, u32bit = 0, u32bit = 1);
virtual ~BlockCipher() {}
@@ -74,7 +74,7 @@ class BOTAN_DLL StreamCipher : public Sy
virtual void seek(u32bit);
virtual StreamCipher* clone() const = 0;
- virtual void clear() throw() {};
+ virtual void clear() throw() = 0;
StreamCipher(u32bit, u32bit = 0, u32bit = 1, u32bit = 0);
virtual ~StreamCipher() {}
@@ -115,7 +115,7 @@ class BOTAN_DLL HashFunction : public Bu
virtual HashFunction* clone() const = 0;
virtual std::string name() const = 0;
- virtual void clear() throw() {};
+ virtual void clear() throw() = 0;
HashFunction(u32bit, u32bit = 0);
virtual ~HashFunction() {}
@@ -132,7 +132,7 @@ class BOTAN_DLL MessageAuthenticationCod
virtual MessageAuthenticationCode* clone() const = 0;
virtual std::string name() const = 0;
- virtual void clear() throw() {};
+ virtual void clear() throw() = 0;
MessageAuthenticationCode(u32bit, u32bit, u32bit = 0, u32bit = 1);
virtual ~MessageAuthenticationCode() {}
============================================================
--- include/rng.h 0f20ace59cb400d38fbf9ff6e96f305b39e59418
+++ include/rng.h 79796317eeefa9e0d7aaa70f0351c0638d41a6d2
@@ -31,7 +31,7 @@ class BOTAN_DLL RandomNumberGenerator
virtual void randomize(byte[], u32bit) = 0;
virtual bool is_seeded() const = 0;
- virtual void clear() throw() {};
+ virtual void clear() throw() = 0;
byte next_byte();
@@ -54,6 +54,8 @@ class BOTAN_DLL Null_RNG : public Random
{
public:
void randomize(byte[], u32bit) { throw PRNG_Unseeded("Null_RNG"); }
+ void clear() throw() {};
+
bool is_seeded() const { return false; }
void add_entropy(const byte[], u32bit) {}
void add_entropy_source(EntropySource* es) { delete es; }