diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-12-25 08:03:32 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-12-25 08:03:32 +0000 |
commit | 3f3a3dee37846872809ead465ed7c53983b15446 (patch) | |
tree | 19b37d22f2b3da3174ca3a22b56172e40380d42e /crc.h | |
parent | 1174a181151a2e178970ff4e010f1ae7a1e55445 (diff) | |
download | cryptopp-3f3a3dee37846872809ead465ed7c53983b15446.tar.gz |
adding missing AlgorithmName()
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@274 57ff6487-cd31-0410-9ec3-f628ee90f5f0
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];} |