29 using uint8_t = std::uint8_t;
30 using uint64_t = std::uint64_t;
33 uint8_t *m_buffer_location{
nullptr};
34 uint64_t m_state[5][5];
35 uint64_t m_message_buffer_64[1600/8];
40 int m_sponge_capacity{0};
44 void m_perform_rounds(
int rounds );
45 void m_absorb_buffer();
48 void m_print_message_buffer(
ostream_type & stream )
const;
113 void hash(
const int b );
123 void digest( uint8_t * d );
SHA3(int digest_size)
Constructor for the SHA3 class.
Definition Utils_SHA3.cc:43
void hash_hex_string(string_view str)
Adds an entire hexadecimal string to the message.
Definition Utils_SHA3.cc:72
void hash_string(string_view str)
Adds an entire string to the message.
Definition Utils_SHA3.cc:63
int digest_size() const
Returns the size of the hash digest.
Definition Utils_SHA3.hh:104
void hash(const int b)
Hash a specified number of bytes.
Definition Utils_SHA3.cc:53
~SHA3()
Destructor for the SHA3 class.
Definition Utils_SHA3.hh:63
void digest(uint8_t *d)
Retrieve the digest and store it in the provided byte array.
Definition Utils_SHA3.cc:93
string digest_in_hex()
Returns a representation of the digest as a hexadecimal string.
Definition Utils_SHA3.cc:111
Definition SystemUtils.cc:39
std::basic_ostream< char > ostream_type
Type for output stream.
Definition Console.hxx:28