util: add gen_block_size field
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-01 08:19:50 +01:00
parent 71207ed742
commit 934c658fde
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

3
util.h
View File

@ -4,11 +4,14 @@
#include <cryptopp/filters.h>
#include <cryptopp/hex.h>
#include <cryptopp/sha3.h>
#include <cstddef>
namespace fortuna {
class Util final {
public:
static constexpr const std::size_t gen_block_size{32}; // 256 bits
static auto do_sha(const std::string& str_to_hash) -> const std::string {
// do sha256
std::string digest;