Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <sha256.hpp>
Public Member Functions | |
Sha256 (ExecutionIdGetterInterface &execution_id_manager, BitwiseInterface &bitwise, GreaterThanInterface >, EventEmitterInterface< Sha256CompressionEvent > &event_emitter) | |
void | compression (MemoryInterface &memory, MemoryAddress state_addr, MemoryAddress input_addr, MemoryAddress output_addr) override |
![]() | |
virtual | ~Sha256Interface ()=default |
Private Member Functions | |
MemoryValue | shr (const MemoryValue &x, uint32_t shift) |
MemoryValue | ror (const MemoryValue &x, uint32_t shift) |
MemoryValue | modulo_sum (std::span< const MemoryValue > values) |
Private Attributes | |
ExecutionIdGetterInterface & | execution_id_manager |
BitwiseInterface & | bitwise |
GreaterThanInterface & | gt |
EventEmitterInterface< Sha256CompressionEvent > & | events |
Definition at line 25 of file sha256.hpp.
|
inline |
Definition at line 27 of file sha256.hpp.
|
overridevirtual |
Implements bb::avm2::simulation::Sha256Interface.
Definition at line 81 of file sha256.cpp.
|
private |
Definition at line 62 of file sha256.cpp.
|
private |
Definition at line 30 of file sha256.cpp.
|
private |
Definition at line 46 of file sha256.cpp.
|
private |
Definition at line 49 of file sha256.hpp.
|
private |
Definition at line 51 of file sha256.hpp.
|
private |
Definition at line 48 of file sha256.hpp.
|
private |
Definition at line 50 of file sha256.hpp.