diff options
author | weidai <weidai11@users.noreply.github.com> | 2006-12-25 08:03:32 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2006-12-25 08:03:32 +0000 |
commit | 05845587a5a0454273fbb0cc48f8b01724c61f65 (patch) | |
tree | 19b37d22f2b3da3174ca3a22b56172e40380d42e /crc.h | |
parent | b696b90551981ac71e8982bd9a86f3800400438b (diff) | |
download | cryptopp-git-05845587a5a0454273fbb0cc48f8b01724c61f65.tar.gz |
adding missing AlgorithmName()
Diffstat (limited to 'crc.h')
-rw-r--r-- | crc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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];} |