Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
aes128.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::plookup
 
namespace  bb::plookup::aes128_tables
 

Functions

std::array< bb::fr, 2 > bb::plookup::aes128_tables::get_aes_sparse_normalization_values_from_key (const std::array< uint64_t, 2 > key)
 Normalizes the sparse form by mapping from sparse form to bytes and back to sparse form.
 
BasicTable bb::plookup::aes128_tables::generate_aes_sparse_normalization_table (BasicTableId id, const size_t table_index)
 Generates a BasicTable for normalizing 4 sparse digits back to valid sparse form.
 
MultiTable bb::plookup::aes128_tables::get_aes_normalization_table (const MultiTableId id=AES_NORMALIZE)
 Creates a MultiTable for normalizing 8 sparse digits back to binary digits.
 
MultiTable bb::plookup::aes128_tables::get_aes_input_table (const MultiTableId id=AES_INPUT)
 Creates a MultiTable for converting a 128-bit AES input block into 16 sparse-form bytes.
 
std::array< bb::fr, 2 > bb::plookup::aes128_tables::get_aes_sbox_values_from_key (const std::array< uint64_t, 2 > key)
 Computes AES S-box substitution and a derived value for MixColumns, returning both in sparse form.
 
BasicTable bb::plookup::aes128_tables::generate_aes_sbox_table (BasicTableId id, const size_t table_index)
 Generates a plookup table for AES S-box substitution with precomputed MixColumns values.
 
MultiTable bb::plookup::aes128_tables::get_aes_sbox_table (const MultiTableId id=AES_SBOX)