14 #ifndef TLX_DIGEST_SHA256_HEADER 15 #define TLX_DIGEST_SHA256_HEADER 34 SHA256(
const void* data, uint32_t size);
36 explicit SHA256(
const std::string& str);
39 void process(
const void* data, uint32_t size);
41 void process(
const std::string& str);
64 std::string
sha256_hex(
const void* data, uint32_t size);
66 std::string
sha256_hex(
const std::string& str);
77 #endif // !TLX_DIGEST_SHA256_HEADER
std::string digest_hex_uc()
finalize computation and return 32 byte (256 bit) digest upper-case hex
std::string sha256_hex(const void *data, uint32_t size)
process data and return 32 byte (256 bit) digest hex encoded
SHA256()
construct empty object.
void finalize(void *digest)
finalize computation and output 32 byte (256 bit) digest
void process(const void *data, uint32_t size)
process more data
std::string digest_hex()
finalize computation and return 32 byte (256 bit) digest hex encoded
SHA-256 processor without external dependencies.
static constexpr size_t kDigestLength
digest length in bytes
std::string sha256_hex_uc(const void *data, uint32_t size)
process data and return 32 byte (256 bit) digest upper-case hex encoded
std::string digest()
finalize computation and return 32 byte (256 bit) digest