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 /crc.h | |
parent | 31068bd68590654dc218bbb183a2ca71bb4af08b (diff) | |
download | cryptopp-git-1db8ea50840eb47f0f7d8f3c30d8e0916932ce90.tar.gz |
port to MSVC .NET 2005 beta 2
Diffstat (limited to 'crc.h')
-rw-r--r-- | crc.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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;} |