Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
aes128_constraint.hpp
Go to the documentation of this file.
1
// === AUDIT STATUS ===
2
// internal: { status: Planned, auditors: [], commit: }
3
// external_1: { status: not started, auditors: [], commit: }
4
// external_2: { status: not started, auditors: [], commit: }
5
// =====================
6
7
#pragma once
8
#include "
barretenberg/dsl/acir_format/witness_constant.hpp
"
9
#include "
barretenberg/stdlib/primitives/field/field.hpp
"
10
#include <array>
11
#include <cstdint>
12
#include <vector>
13
14
namespace
acir_format
{
15
16
struct
AES128Input
{
17
uint32_t
witness
;
18
uint32_t
num_bits
;
19
20
friend
bool
operator==
(
AES128Input
const
& lhs,
AES128Input
const
& rhs) =
default
;
21
};
22
23
struct
AES128Constraint
{
24
std::vector<WitnessOrConstant<bb::fr>
>
inputs
;
25
std::array<WitnessOrConstant<bb::fr>
, 16>
iv
;
26
std::array<WitnessOrConstant<bb::fr>
, 16>
key
;
27
std::vector<uint32_t>
outputs
;
28
29
friend
bool
operator==
(
AES128Constraint
const
& lhs,
AES128Constraint
const
& rhs) =
default
;
30
};
31
32
template
<
typename
Builder>
void
create_aes128_constraints
(
Builder
&
builder
,
const
AES128Constraint
& constraint);
33
34
}
// namespace acir_format
bb::ECCVMCircuitBuilder
Definition
eccvm_circuit_builder.hpp:24
builder
AluTraceBuilder builder
Definition
alu.test.cpp:124
acir_format
Definition
acir_format.cpp:30
acir_format::create_aes128_constraints
void create_aes128_constraints(Builder &builder, const AES128Constraint &constraint)
Definition
aes128_constraint.cpp:18
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
field.hpp
acir_format::AES128Constraint
Definition
aes128_constraint.hpp:23
acir_format::AES128Constraint::iv
std::array< WitnessOrConstant< bb::fr >, 16 > iv
Definition
aes128_constraint.hpp:25
acir_format::AES128Constraint::outputs
std::vector< uint32_t > outputs
Definition
aes128_constraint.hpp:27
acir_format::AES128Constraint::operator==
friend bool operator==(AES128Constraint const &lhs, AES128Constraint const &rhs)=default
acir_format::AES128Constraint::inputs
std::vector< WitnessOrConstant< bb::fr > > inputs
Definition
aes128_constraint.hpp:24
acir_format::AES128Constraint::key
std::array< WitnessOrConstant< bb::fr >, 16 > key
Definition
aes128_constraint.hpp:26
acir_format::AES128Input
Definition
aes128_constraint.hpp:16
acir_format::AES128Input::num_bits
uint32_t num_bits
Definition
aes128_constraint.hpp:18
acir_format::AES128Input::operator==
friend bool operator==(AES128Input const &lhs, AES128Input const &rhs)=default
acir_format::AES128Input::witness
uint32_t witness
Definition
aes128_constraint.hpp:17
witness_constant.hpp
src
barretenberg
dsl
acir_format
aes128_constraint.hpp
Generated by
1.9.8