summaryrefslogtreecommitdiff
path: root/blumshub.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-04 15:38:32 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-04 15:38:32 +0000
commite893a752d7bf74c9692cad5f058a190a6a047210 (patch)
treead77c798110d040680e92eb3bf46523222bca155 /blumshub.h
parent0cee348b78bdb6ef7da48ae6682c17dd75dc2fd4 (diff)
downloadcryptopp-e893a752d7bf74c9692cad5f058a190a6a047210.tar.gz
add IncorporateEntropy and GenerateIntoBufferedTransformation to RNG interface
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@342 57ff6487-cd31-0410-9ec3-f628ee90f5f0
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 6aab326..5e50747 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;}