19
19
class CRC32 : public HashTransformation
24
24
void Update(const byte *input, size_t length);
25
25
void TruncatedFinal(byte *hash, size_t size);
26
26
unsigned int DigestSize() const {return DIGESTSIZE;}
28
30
void UpdateByte(byte b) {m_crc = m_tab[CRC32_INDEX(m_crc) ^ b] ^ CRC32_SHIFTED(m_crc);}
29
31
byte GetCrcByte(size_t i) const {return ((byte *)&(m_crc))[i];}