summaryrefslogtreecommitdiff
path: root/randpool.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2005-07-12 04:23:32 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2005-07-12 04:23:32 +0000
commitd5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47 (patch)
tree4b03760892a97a9bc452ebe8b7793bbebd402ad4 /randpool.h
parentfa39f51809b4da54a5c2adb3e183b1a625cefb92 (diff)
downloadcryptopp-d5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47.tar.gz
port to MSVC .NET 2005 beta 2
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@198 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'randpool.h')
-rw-r--r--randpool.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/randpool.h b/randpool.h
index 4a68f2c..e4157f3 100644
--- a/randpool.h
+++ b/randpool.h
@@ -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 &parameters) {}
@@ -38,7 +38,7 @@ protected:
private:
SecByteBlock pool, key;
- unsigned int addPos, getPos;
+ size_t addPos, getPos;
};
NAMESPACE_END