Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
graph_description_aes128.test.cpp File Reference

Go to the source code of this file.

Typedefs

using Builder = UltraCircuitBuilder
 
using field_pt = stdlib::field_t< UltraCircuitBuilder >
 
using witness_pt = stdlib::witness_t< bb::UltraCircuitBuilder >
 

Functions

void fix_vector_witness (std::vector< field_pt > &input_vector)
 Fix witness values in a vector to ensure they appear in multiple gates.
 
 TEST (boomerang_stdlib_aes, test_graph_for_aes_64_bytes)
 Test graph description of AES128CBC circuit with 64 bytes of data.
 
 TEST (boomerang_stdlib_aes, test_variable_gates_count_for_aes128cbc)
 Test variable gate counts for AES128CBC circuit.
 

Typedef Documentation

◆ Builder

Definition at line 17 of file graph_description_aes128.test.cpp.

◆ field_pt

◆ witness_pt

Function Documentation

◆ fix_vector_witness()

void fix_vector_witness ( std::vector< field_pt > &  input_vector)

Fix witness values in a vector to ensure they appear in multiple gates.

Static analyzer typically identifies variables in only one gate. For test input/output variables, we can filter them by fixing their witness values, which adds them to a second gate and prevents them from being flagged as potentially dangerous.

Parameters
input_vectorVector of field elements to fix

Definition at line 30 of file graph_description_aes128.test.cpp.

◆ TEST() [1/2]

TEST ( boomerang_stdlib_aes  ,
test_graph_for_aes_64_bytes   
)

Test graph description of AES128CBC circuit with 64 bytes of data.

This test verifies that:

  • The graph consists of one connected component
  • No variables are in only one gate

Definition at line 44 of file graph_description_aes128.test.cpp.

◆ TEST() [2/2]

TEST ( boomerang_stdlib_aes  ,
test_variable_gates_count_for_aes128cbc   
)

Test variable gate counts for AES128CBC circuit.

This test verifies that:

  • The graph consists of one connected component
  • No variables appear in only one gate

Note: Input/output vectors, key, and IV variables might normally appear in only one gate, but we fix their witness values to ensure they appear in multiple gates.

Definition at line 98 of file graph_description_aes128.test.cpp.