summaryrefslogtreecommitdiff
path: root/blumshub.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2007-05-04 15:38:32 +0000
committerweidai <weidai11@users.noreply.github.com>2007-05-04 15:38:32 +0000
commit5834ecc870714249b1f70d0ce81accb407c0ae37 (patch)
treead77c798110d040680e92eb3bf46523222bca155 /blumshub.h
parent4186dc1478936e5359d5e978e9b8c6cf6e4296c5 (diff)
downloadcryptopp-git-5834ecc870714249b1f70d0ce81accb407c0ae37.tar.gz
add IncorporateEntropy and GenerateIntoBufferedTransformation to RNG interface
Diffstat (limited to 'blumshub.h')
-rw-r--r--blumshub.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/blumshub.h b/blumshub.h
index 6aab3261..5e507478 100644
--- a/blumshub.h
+++ b/blumshub.h
@@ -17,12 +17,8 @@ public:
unsigned int GenerateBit();
byte GenerateByte();
-
- void ProcessData(byte *outString, const byte *inString, size_t length)
- {
- while (length--)
- *outString++ = *inString ^ 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;}