Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <stddef.h>
#include <stdint.h>
#include <vector>
Go to the source code of this file.
Classes | |
struct | blake3_full::blake3_chunk_state__ |
struct | blake3_full::blake3_hasher__ |
Namespaces | |
namespace | blake3_full |
Macros | |
#define | BLAKE3_VERSION_STRING "0.3.7" |
Typedefs | |
typedef struct blake3_full::blake3_chunk_state__ | blake3_full::blake3_chunk_state |
typedef struct blake3_full::blake3_hasher__ | blake3_full::blake3_hasher |
Enumerations | |
enum | blake3_full::blake3_flags { blake3_full::CHUNK_START = 1 << 0 , blake3_full::CHUNK_END = 1 << 1 , blake3_full::PARENT = 1 << 2 , blake3_full::ROOT = 1 << 3 , blake3_full::KEYED_HASH = 1 << 4 , blake3_full::DERIVE_KEY_CONTEXT = 1 << 5 , blake3_full::DERIVE_KEY_MATERIAL = 1 << 6 } |
enum | blake3_full::blake3s_constant { blake3_full::BLAKE3_KEY_LEN = 32 , blake3_full::BLAKE3_OUT_LEN = 32 , blake3_full::BLAKE3_BLOCK_LEN = 64 , blake3_full::BLAKE3_CHUNK_LEN = 1024 , blake3_full::BLAKE3_MAX_DEPTH = 54 } |
enum | blake3_full::mode { blake3_full::HASH_MODE = 0 , blake3_full::KEYED_HASH_MODE = 1 , blake3_full::DERIVE_KEY_MODE = 2 } |
Functions | |
const char * | blake3_full::blake3_version (void) |
void | blake3_full::blake3_hasher_init (blake3_hasher *self) |
void | blake3_full::blake3_hasher_init_keyed (blake3_hasher *self, const uint8_t key[BLAKE3_KEY_LEN]) |
void | blake3_full::blake3_hasher_init_derive_key (blake3_hasher *self, const char *context) |
void | blake3_full::blake3_hasher_init_derive_key_raw (blake3_hasher *self, const void *context, size_t context_len) |
void | blake3_full::blake3_hasher_update (blake3_hasher *self, const void *input, size_t input_len) |
void | blake3_full::blake3_hasher_finalize (const blake3_hasher *self, uint8_t *out, size_t out_len) |
void | blake3_full::blake3_hasher_finalize_seek (const blake3_hasher *self, uint64_t seek, uint8_t *out, size_t out_len) |
void | blake3_full::g (uint32_t *state, size_t a, size_t b, size_t c, size_t d, uint32_t x, uint32_t y) |
void | blake3_full::round_fn (uint32_t state[16], const uint32_t *msg, size_t round) |
void | blake3_full::compress_pre (uint32_t state[16], const uint32_t cv[8], const uint8_t block[BLAKE3_BLOCK_LEN], uint8_t block_len, uint64_t counter, uint8_t flags) |
void | blake3_full::blake3_compress_in_place (uint32_t cv[8], const uint8_t block[BLAKE3_BLOCK_LEN], uint8_t block_len, uint64_t counter, uint8_t flags) |
void | blake3_full::blake3_compress_xof (const uint32_t cv[8], const uint8_t block[BLAKE3_BLOCK_LEN], uint8_t block_len, uint64_t counter, uint8_t flags, uint8_t out[64]) |
void | blake3_full::blak3s_hash_one (const uint8_t *input, size_t blocks, const uint32_t key[8], uint64_t counter, uint8_t flags, uint8_t flags_start, uint8_t flags_end, uint8_t out[BLAKE3_OUT_LEN]) |
void | blake3_full::blake3_hash_many (const uint8_t *const *inputs, size_t num_inputs, size_t blocks, const uint32_t key[8], uint64_t counter, bool increment_counter, uint8_t flags, uint8_t flags_start, uint8_t flags_end, uint8_t *out) |
std::vector< uint8_t > | blake3_full::blake3s (std::vector< uint8_t > const &input, const mode mode_id, const uint8_t key[BLAKE3_KEY_LEN], const char *context) |
#define BLAKE3_VERSION_STRING "0.3.7" |
Definition at line 33 of file blake3s.hpp.