#include <HashUtils.hpp>
|
template<typename Algo = CryptoPP::SHA256> |
static std::array< byte, Algo::DIGESTSIZE > | bytes (const byte *buffer, const std::size_t buffSize) |
|
template<typename Algo = CryptoPP::SHA256> |
static std::array< byte, Algo::DIGESTSIZE > | bytes (const std::vector< byte > &buffer) |
|
template<typename Algo = CryptoPP::SHA256> |
static std::string | str (const std::vector< byte > &buffer, const bool uppercase=false) |
|
template<typename Algo = CryptoPP::SHA256> |
static std::array< byte, Algo::DIGESTSIZE > | fileBytes (const fs::path &filename) |
|
template<typename Algo = CryptoPP::SHA256> |
static std::string | fileStr (const fs::path &filename, const bool uppercase=false) |
|
template<typename Algo = CryptoPP::SHA256> |
static std::string | stringify (const std::array< byte, Algo::DIGESTSIZE > &hash, const bool uppercase=false) |
|
Definition at line 22 of file HashUtils.hpp.
◆ bytes() [1/2]
template<typename Algo = CryptoPP::SHA256>
static std::array<byte, Algo::DIGESTSIZE> HashUtils::bytes |
( |
const byte * |
buffer, |
|
|
const std::size_t |
buffSize |
|
) |
| |
|
inlinestatic |
◆ bytes() [2/2]
template<typename Algo = CryptoPP::SHA256>
static std::array<byte, Algo::DIGESTSIZE> HashUtils::bytes |
( |
const std::vector< byte > & |
buffer | ) |
|
|
inlinestatic |
◆ fileBytes()
template<typename Algo = CryptoPP::SHA256>
static std::array<byte, Algo::DIGESTSIZE> HashUtils::fileBytes |
( |
const fs::path & |
filename | ) |
|
|
inlinestatic |
◆ fileStr()
template<typename Algo = CryptoPP::SHA256>
static std::string HashUtils::fileStr |
( |
const fs::path & |
filename, |
|
|
const bool |
uppercase = false |
|
) |
| |
|
inlinestatic |
◆ str()
template<typename Algo = CryptoPP::SHA256>
static std::string HashUtils::str |
( |
const std::vector< byte > & |
buffer, |
|
|
const bool |
uppercase = false |
|
) |
| |
|
inlinestatic |
◆ stringify()
template<typename Algo = CryptoPP::SHA256>
static std::string HashUtils::stringify |
( |
const std::array< byte, Algo::DIGESTSIZE > & |
hash, |
|
|
const bool |
uppercase = false |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: