AES-DH Implementation
Loading...
Searching...
No Matches
aes::state Class Reference

An arbitrary collection of state arrays. More...

#include <aes.h>

Public Member Functions

 state (const std::string &in, const std::array< uint64_t, 4 > &k, const uint64_t &Nr)
 
 state (const std::vector< state_array > &arrs, const std::array< uint64_t, 4 > &k, const uint64_t &Nr)
 
auto & get_arrays ()
 
const auto & get_arrays () const
 
const auto & get_key ()
 
const auto & get_rounds ()
 
std::string unravel () const
 Unravel a state into a character string.
 
void AddRoundKey (const uint64_t &round)
 
void SubBytes ()
 
void InvSubBytes ()
 
void ShiftRows ()
 
void InvShiftRows ()
 
void MixColumns ()
 
void InvMixColumns ()
 

Detailed Description

An arbitrary collection of state arrays.

Member Function Documentation

◆ AddRoundKey()

void aes::state::AddRoundKey ( const uint64_t & round)
inline

All of the steps here simply act on each state_array in the state.

◆ unravel()

std::string aes::state::unravel ( ) const
inline

Unravel a state into a character string.

Returns
A string.

The documentation for this class was generated from the following file: