summaryrefslogtreecommitdiff
path: root/crc.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2006-12-25 08:03:32 +0000
committerweidai <weidai11@users.noreply.github.com>2006-12-25 08:03:32 +0000
commit05845587a5a0454273fbb0cc48f8b01724c61f65 (patch)
tree19b37d22f2b3da3174ca3a22b56172e40380d42e /crc.h
parentb696b90551981ac71e8982bd9a86f3800400438b (diff)
downloadcryptopp-git-05845587a5a0454273fbb0cc48f8b01724c61f65.tar.gz
adding missing AlgorithmName()
Diffstat (limited to 'crc.h')
-rw-r--r--crc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crc.h b/crc.h
index 23f14618..1cacf5b5 100644
--- a/crc.h
+++ b/crc.h
@@ -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];}