~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to crc.h

  • Committer: weidai
  • Date: 2009-03-13 11:15:21 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:450
fix compile on OpenSolaris 8.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
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;}
27
 
    std::string AlgorithmName() const {return "CRC32";}
 
27
    static const char * StaticAlgorithmName() {return "CRC32";}
 
28
    std::string AlgorithmName() const {return StaticAlgorithmName();}
28
29
 
29
30
        void UpdateByte(byte b) {m_crc = m_tab[CRC32_INDEX(m_crc) ^ b] ^ CRC32_SHIFTED(m_crc);}
30
31
        byte GetCrcByte(size_t i) const {return ((byte *)&(m_crc))[i];}