diff options
-rw-r--r-- | adler32.h | 1 | ||||
-rw-r--r-- | crc.h | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -14,6 +14,7 @@ public: void Update(const byte *input, size_t length); void TruncatedFinal(byte *hash, size_t size); unsigned int DigestSize() const {return DIGESTSIZE;} + std::string AlgorithmName() const {return "Adler32";} private: void Reset() {m_s1 = 1; m_s2 = 0;} @@ -24,6 +24,7 @@ public: void Update(const byte *input, size_t length); void TruncatedFinal(byte *hash, size_t size); unsigned int DigestSize() const {return DIGESTSIZE;} + std::string AlgorithmName() const {return "CRC32";} void UpdateByte(byte b) {m_crc = m_tab[CRC32_INDEX(m_crc) ^ b] ^ CRC32_SHIFTED(m_crc);} byte GetCrcByte(size_t i) const {return ((byte *)&(m_crc))[i];} |