feat(sha256): uint8_t * overloading

This commit is contained in:
2024-09-11 16:38:43 +03:00
parent f2d9318a45
commit 050efca4cc
2 changed files with 11 additions and 6 deletions

View File

@ -6,5 +6,6 @@
#define SHA256_DIGEST_LENGTH 32
namespace hash {
std::vector<uint8_t> sha256(const std::vector<uint8_t> &data);
void sha256(const uint8_t *data, uint64_t data_size, const uint8_t *hash) noexcept;
std::vector<uint8_t> sha256(const std::vector<uint8_t> &data) noexcept;
}