/* */ #ifndef _D_DHT_UTIL_H_ #define _D_DHT_UTIL_H_ #include "common.h" #include namespace aria2 { class DHTUtil { public: static void generateRandomKey(unsigned char* key); static void generateRandomData(unsigned char* data, size_t length); static void flipBit(unsigned char* data, size_t length, size_t bitIndex); }; } // namespace aria2 #endif // _D_DHT_UTIL_H_