diff options
author | weidai <weidai11@users.noreply.github.com> | 2007-05-04 15:38:32 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2007-05-04 15:38:32 +0000 |
commit | 5834ecc870714249b1f70d0ce81accb407c0ae37 (patch) | |
tree | ad77c798110d040680e92eb3bf46523222bca155 /blumshub.h | |
parent | 4186dc1478936e5359d5e978e9b8c6cf6e4296c5 (diff) | |
download | cryptopp-git-5834ecc870714249b1f70d0ce81accb407c0ae37.tar.gz |
add IncorporateEntropy and GenerateIntoBufferedTransformation to RNG interface
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;} |