generator: add std::array<std::byte, 16> counter
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-27 22:48:58 +01:00
parent c9218e47e8
commit 715523eb1a
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -6,6 +6,7 @@
#include <cryptopp/secblock.h>
#include <cryptopp/serpent.h>
#include <array>
#include <chrono>
#include <cstdint>
#include <mutex>
@ -48,11 +49,14 @@ private:
struct G_state {
// 32*8
static constexpr const std::size_t k_length{32};
static constexpr const std::size_t ctr_len{16};
CryptoPP::FixedSizeSecBlock<CryptoPP::byte, k_length> k;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
unsigned __int128 ctr;
#pragma GCC diagnostic pop
std::array<std::byte, ctr_len> counter;
};
G_state G;