20 ENIGMA_STATIC_CLASS(
Meta);
35 std::uint64_t
version = ENIGMA_VERSION_MAJOR * 100'000 + ENIGMA_VERSION_MINOR * 1000 + ENIGMA_VERSION_PATCH;
39 std::array<byte, CryptoPP::SHA256::DIGESTSIZE>
hash{};
41 std::vector<byte>
iv{};
49 [[nodiscard]] std::vector<
byte>
toBytes() const;
64 [[nodiscard]] std::vector<
byte>
toBytes() const;
73 static_assert(std::endian::native == std::endian::little,
"Host must be little endian");
74 static_assert(
sizeof(
magic_t) == 8,
"Magic type must be of 8 bytes");
75 static_assert(
sizeof(
size_type) == 8,
"Size type must be of 8 bytes");
81 static bool isEnigmaCipher(
const byte *cipher,
const std::size_t cipherSize);
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
#define ENIGMA_KB_TO_BYTES(kb)