Improved the docs for the 3 main Tactility projects. I also fixed some inaccuracies and bugs in certain APIs as I went through the code.
24 lines
467 B
C++
24 lines
467 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
namespace tt::crypt {
|
|
|
|
/**
|
|
* Implementation of DJB2 hashing algorithm.
|
|
* @param[in] str the string to calculate the hash for
|
|
* @return the hash
|
|
*/
|
|
uint32_t djb2(const char* str);
|
|
|
|
/**
|
|
* Implementation of DJB2 hashing algorithm.
|
|
* @param[in] data the bytes to calculate the hash for
|
|
* @param[in] length the size of data
|
|
* @return the hash
|
|
*/
|
|
uint32_t djb2(const void* data, size_t length);
|
|
|
|
} // namespace
|