14#ifndef TLX_DIGEST_SHA1_HEADER
15#define TLX_DIGEST_SHA1_HEADER
34 SHA1(
const void* data, std::uint32_t size);
36 explicit SHA1(
const std::string& str);
39 void process(
const void* data, std::uint32_t size);
41 void process(
const std::string& str);
64std::string
sha1_hex(
const void* data, std::uint32_t size);
66std::string
sha1_hex(
const std::string& str);
69std::string
sha1_hex_uc(
const void* data, std::uint32_t size);
SHA-1 processor without external dependencies.
void finalize(void *digest)
finalize computation and output 20 byte (160 bit) digest
std::string digest_hex()
finalize computation and return 20 byte (160 bit) digest hex encoded
std::string digest()
finalize computation and return 20 byte (160 bit) digest
std::string digest_hex_uc()
finalize computation and return 20 byte (160 bit) digest upper-case hex
static constexpr size_t kDigestLength
digest length in bytes
void process(const void *data, std::uint32_t size)
process more data
SHA1()
construct empty object.
std::string sha1_hex_uc(const void *data, std::uint32_t size)
process data and return 20 byte (160 bit) digest upper-case hex encoded
std::string sha1_hex(const void *data, std::uint32_t size)
process data and return 20 byte (160 bit) digest hex encoded