diff options
author | weidai <weidai11@users.noreply.github.com> | 2005-07-12 04:23:32 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2005-07-12 04:23:32 +0000 |
commit | 1db8ea50840eb47f0f7d8f3c30d8e0916932ce90 (patch) | |
tree | 4b03760892a97a9bc452ebe8b7793bbebd402ad4 /randpool.h | |
parent | 31068bd68590654dc218bbb183a2ca71bb4af08b (diff) | |
download | cryptopp-git-1db8ea50840eb47f0f7d8f3c30d8e0916932ce90.tar.gz |
port to MSVC .NET 2005 beta 2
Diffstat (limited to 'randpool.h')
-rw-r--r-- | randpool.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -17,19 +17,19 @@ public: //! poolSize must be greater than 16 RandomPool(unsigned int poolSize=384); - unsigned int Put2(const byte *begin, unsigned int, int messageEnd, bool blocking); + size_t Put2(const byte *begin, size_t length, int messageEnd, bool blocking); bool AnyRetrievable() const {return true;} - unsigned long MaxRetrievable() const {return ULONG_MAX;} + lword MaxRetrievable() const {return ULONG_MAX;} - unsigned int TransferTo2(BufferedTransformation &target, unsigned long &transferBytes, const std::string &channel=NULL_CHANNEL, bool blocking=true); - unsigned int CopyRangeTo2(BufferedTransformation &target, unsigned long &begin, unsigned long end=ULONG_MAX, const std::string &channel=NULL_CHANNEL, bool blocking=true) const + size_t TransferTo2(BufferedTransformation &target, lword &transferBytes, const std::string &channel=NULL_CHANNEL, bool blocking=true); + size_t CopyRangeTo2(BufferedTransformation &target, lword &begin, lword end=LWORD_MAX, const std::string &channel=NULL_CHANNEL, bool blocking=true) const { throw NotImplemented("RandomPool: CopyRangeTo2() is not supported by this store"); } byte GenerateByte(); - void GenerateBlock(byte *output, unsigned int size); + void GenerateBlock(byte *output, size_t size); void IsolatedInitialize(const NameValuePairs ¶meters) {} @@ -38,7 +38,7 @@ protected: private: SecByteBlock pool, key; - unsigned int addPos, getPos; + size_t addPos, getPos; }; NAMESPACE_END |