Simple SHA-256 implementation for backup integrity verification.
More...
#include <Sha256.hpp>
|
| void | Reset () |
| |
| void | Update (void const *data, size_t len) |
| |
| void | Update (std::span< uint8_t const > data) |
| |
| void | Update (std::string_view data) |
| |
| std::array< uint8_t, DigestSize > | Finalize () |
| |
|
| static std::string | ToHex (std::array< uint8_t, DigestSize > const &digest) |
| |
| static std::string | Hash (void const *data, size_t len) |
| |
| static std::string | Hash (std::string_view data) |
| |
Simple SHA-256 implementation for backup integrity verification.
Definition at line 17 of file Sha256.hpp.
◆ Sha256()
| Lightweight::SqlBackup::Sha256::Sha256 |
( |
| ) |
|
|
inline |
◆ Reset()
| void Lightweight::SqlBackup::Sha256::Reset |
( |
| ) |
|
|
inline |
◆ Update() [1/3]
| void Lightweight::SqlBackup::Sha256::Update |
( |
void const * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inline |
◆ Update() [2/3]
| void Lightweight::SqlBackup::Sha256::Update |
( |
std::span< uint8_t const > |
data | ) |
|
|
inline |
◆ Update() [3/3]
| void Lightweight::SqlBackup::Sha256::Update |
( |
std::string_view |
data | ) |
|
|
inline |
◆ Finalize()
| std::array< uint8_t, DigestSize > Lightweight::SqlBackup::Sha256::Finalize |
( |
| ) |
|
|
inline |
◆ ToHex()
| static std::string Lightweight::SqlBackup::Sha256::ToHex |
( |
std::array< uint8_t, DigestSize > const & |
digest | ) |
|
|
inlinestatic |
◆ Hash() [1/2]
| static std::string Lightweight::SqlBackup::Sha256::Hash |
( |
void const * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlinestatic |
◆ Hash() [2/2]
| static std::string Lightweight::SqlBackup::Sha256::Hash |
( |
std::string_view |
data | ) |
|
|
inlinestatic |
◆ DigestSize
| constexpr size_t Lightweight::SqlBackup::Sha256::DigestSize = 32 |
|
staticconstexpr |
◆ BlockSize
| constexpr size_t Lightweight::SqlBackup::Sha256::BlockSize = 64 |
|
staticconstexpr |
The documentation for this class was generated from the following file: