diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-05 07:00:55 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-05 07:00:55 -0400 |
| commit | 0e43e5e8f2eddd5768873350d12103f2684bedbf (patch) | |
| tree | e4c49274cd6b1c717366514348ee5ba73b1b1a1c /node/Utils.hpp | |
| parent | b0187f44720fb675b99e6b6e57b660c6dfe8e464 (diff) | |
| download | infinitytier-0e43e5e8f2eddd5768873350d12103f2684bedbf.tar.gz infinitytier-0e43e5e8f2eddd5768873350d12103f2684bedbf.zip | |
Rest of work on new hashcash based identity scheme.
Diffstat (limited to 'node/Utils.hpp')
| -rw-r--r-- | node/Utils.hpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/node/Utils.hpp b/node/Utils.hpp index 8e9ab8d3..6a56ba9d 100644 --- a/node/Utils.hpp +++ b/node/Utils.hpp @@ -678,22 +678,6 @@ public: return ((*aptr & mask) == (*aptr & mask)); } - /** - * Compute CRC64 - * - * @param crc Previous CRC (0 to start) - * @param s String to add to crc - * @param l Length of string in bytes - * @return New CRC - */ - static inline uint64_t crc64(uint64_t crc,const void *s,unsigned int l) - throw() - { - for(unsigned int i=0;i<l;++i) - crc = crc64Table[(uint8_t)crc ^ ((const uint8_t *)s)[i]] ^ (crc >> 8); - return crc; - } - static inline uint8_t hton(uint8_t n) throw() { return n; } static inline int8_t hton(int8_t n) throw() { return n; } static inline uint16_t hton(uint16_t n) throw() { return htons(n); } @@ -758,9 +742,6 @@ public: * Hexadecimal characters 0-f */ static const char HEXCHARS[16]; - -private: - static const uint64_t crc64Table[256]; }; } // namespace ZeroTier |
