summaryrefslogtreecommitdiffstats
path: root/cryptopp562/blumshub.h
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-10-21 11:09:00 -0400
committerMalfurious <m@lfurio.us>2024-10-24 06:41:41 -0400
commit5494fc310acf0aabb9d828451331e44483eb21c7 (patch)
tree77280a586d52470fca89b9ed73f5f1faaf7907c6 /cryptopp562/blumshub.h
parent428471d39fb8c205a9fad899c88c30a2cb7df685 (diff)
downloadcompass-5494fc310acf0aabb9d828451331e44483eb21c7.tar.gz
compass-5494fc310acf0aabb9d828451331e44483eb21c7.zip
Remove Crypto++ library
The tracked version of Crypto++ is going on 10 years old and doesn't always compile properly on modern tooling. This removes the entire subdirectory as well as references to files in the build script. Due to the number of files touched by this commit, I opt to add its replacement in the next commit. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to '')
-rw-r--r--cryptopp562/blumshub.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/cryptopp562/blumshub.h b/cryptopp562/blumshub.h
deleted file mode 100644
index 5e50747..0000000
--- a/cryptopp562/blumshub.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifndef CRYPTOPP_BLUMSHUB_H
-#define CRYPTOPP_BLUMSHUB_H
-
-#include "modarith.h"
-
-NAMESPACE_BEGIN(CryptoPP)
-
-class BlumGoldwasserPublicKey;
-class BlumGoldwasserPrivateKey;
-
-//! BlumBlumShub without factorization of the modulus
-class PublicBlumBlumShub : public RandomNumberGenerator,
- public StreamTransformation
-{
-public:
- PublicBlumBlumShub(const Integer &n, const Integer &seed);
-
- unsigned int GenerateBit();
- byte GenerateByte();
- void GenerateBlock(byte *output, size_t size);
- void ProcessData(byte *outString, const byte *inString, size_t length);
-
- bool IsSelfInverting() const {return true;}
- bool IsForwardTransformation() const {return true;}
-
-protected:
- ModularArithmetic modn;
- word maxBits, bitsLeft;
- Integer current;
-
- friend class BlumGoldwasserPublicKey;
- friend class BlumGoldwasserPrivateKey;
-};
-
-//! BlumBlumShub with factorization of the modulus
-class BlumBlumShub : public PublicBlumBlumShub
-{
-public:
- // 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);
-
- bool IsRandomAccess() const {return true;}
- void Seek(lword index);
-
-protected:
- const Integer p, q;
- const Integer x0;
-};
-
-NAMESPACE_END
-
-#endif