36 template<
size_t bytes>
40 static const size_t loop_count = bytes < 256 ? 100000 : bytes < 4096 ? 10000 : 1000;
static const size_t loop_count
Definition: cn_fast_hash.h:40
void rand(size_t N, uint8_t *bytes)
Definition: crypto.h:167
std::array< uint8_t, bytes > m_data
Definition: cn_fast_hash.h:56
void cn_fast_hash(const void *data, size_t length, char *hash)
Definition: hash.c:53
bool test()
Definition: cn_fast_hash.h:48
POD_CLASS hash
Definition: hash.h:49
Definition: cn_fast_hash.h:37
bool init()
Definition: cn_fast_hash.h:42