Classes | |
class | Context |
A SHA256 context. More... | |
Typedefs | |
typedef std::array< uint8_t, HASH_SIZE > | Hash |
A SHA256 hash. More... | |
Functions | |
Hash | calculate (uint8_t const *buffer, size_t buffer_size) |
Calculate the SHA256 hash of the buffer. More... | |
std::string | hash_to_string (Hash hash) |
Convert a SHA256 hash to a hexadecimal string. More... | |
Variables | |
constexpr size_t | HASH_SIZE = 256 / 8 |
Size of a SHA256 hash. More... | |
constexpr size_t | BLOCK_SIZE = 64 |
typedef std::array<uint8_t, HASH_SIZE> smash::sha256::Hash |
Hash smash::sha256::calculate | ( | uint8_t const * | buffer, |
size_t | buffer_size | ||
) |
std::string smash::sha256::hash_to_string | ( | Hash | hash | ) |
|
constexpr |