summaryrefslogtreecommitdiff
path: root/crc.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 /crc.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 'crc.h')
-rw-r--r--crc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/crc.h b/crc.h
index 3ba1323..1696174 100644
--- a/crc.h
+++ b/crc.h
@@ -21,12 +21,12 @@ class CRC32 : public HashTransformation
public:
enum {DIGESTSIZE = 4};
CRC32();
- void Update(const byte *input, unsigned int length);
- void TruncatedFinal(byte *hash, unsigned int size);
+ void Update(const byte *input, size_t length);
+ void TruncatedFinal(byte *hash, size_t size);
unsigned int DigestSize() const {return DIGESTSIZE;}
void UpdateByte(byte b) {m_crc = m_tab[CRC32_INDEX(m_crc) ^ b] ^ CRC32_SHIFTED(m_crc);}
- byte GetCrcByte(unsigned int i) const {return ((byte *)&(m_crc))[i];}
+ byte GetCrcByte(size_t i) const {return ((byte *)&(m_crc))[i];}
private:
void Reset() {m_crc = CRC32_NEGL;}