Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
sha256_compression.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <span>
5
7
8namespace bb::avm2::simulation {
9
10std::array<uint32_t, 8> sha256_block(const std::array<uint32_t, 8>& h_init, const std::array<uint32_t, 16>& input);
11constexpr uint32_t ror(uint32_t val, uint32_t shift)
12{
13 return (val >> (shift & 31U)) | (val << (32U - (shift & 31U)));
14}
15
16} // namespace bb::avm2::simulation
std::array< uint32_t, 8 > sha256_block(const std::array< uint32_t, 8 > &h_init, const std::array< uint32_t, 16 > &input)
constexpr uint32_t ror(uint32_t val, uint32_t shift)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13