From 0e43e5e8f2eddd5768873350d12103f2684bedbf Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Sat, 5 Oct 2013 07:00:55 -0400 Subject: Rest of work on new hashcash based identity scheme. --- node/Utils.hpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'node/Utils.hpp') 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> 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 -- cgit v1.2.3