diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-05-04 15:38:32 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-05-04 15:38:32 +0000 |
commit | e893a752d7bf74c9692cad5f058a190a6a047210 (patch) | |
tree | ad77c798110d040680e92eb3bf46523222bca155 /blumshub.h | |
parent | 0cee348b78bdb6ef7da48ae6682c17dd75dc2fd4 (diff) | |
download | cryptopp-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.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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;} |