summaryrefslogtreecommitdiff
path: root/blumshub.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-12-03 00:32:07 -0500
committerJeffrey Walton <noloader@gmail.com>2016-12-03 00:32:07 -0500
commit40230dd3bf5400ec3fda20cc791fb05c7a1c5b62 (patch)
tree834a1ab74d205c54d55b801d5dc1ab949ebc5bca /blumshub.h
parent6eb2792bc26aebc83924e7e7be28c0444dca506c (diff)
downloadcryptopp-git-40230dd3bf5400ec3fda20cc791fb05c7a1c5b62.tar.gz
Removed MAINTAIN_BACKWARDS_COMPATIBILITY_562 (Issue 70)
Diffstat (limited to 'blumshub.h')
-rw-r--r--blumshub.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/blumshub.h b/blumshub.h
index df7c6854..486e4075 100644
--- a/blumshub.h
+++ b/blumshub.h
@@ -18,6 +18,8 @@ class PublicBlumBlumShub : public RandomNumberGenerator,
public StreamTransformation
{
public:
+ virtual ~PublicBlumBlumShub() {}
+
PublicBlumBlumShub(const Integer &n, const Integer &seed);
unsigned int GenerateBit();
@@ -28,10 +30,6 @@ public:
bool IsSelfInverting() const {return true;}
bool IsForwardTransformation() const {return true;}
-#ifndef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
- virtual ~PublicBlumBlumShub() {}
-#endif
-
protected:
ModularArithmetic modn;
Integer current;
@@ -42,6 +40,8 @@ protected:
class BlumBlumShub : public PublicBlumBlumShub
{
public:
+ virtual ~BlumBlumShub() {}
+
// Make sure p and q are both primes congruent to 3 mod 4 and at least 512 bits long,
// seed is the secret key and should be about as big as p*q
BlumBlumShub(const Integer &p, const Integer &q, const Integer &seed);
@@ -49,10 +49,6 @@ public:
bool IsRandomAccess() const {return true;}
void Seek(lword index);
-#ifndef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
- virtual ~BlumBlumShub() {}
-#endif
-
protected:
const Integer p, q;
const Integer x0;