An incremental hasher that can accept any number of writes.

Fields

chunk_state: ChunkState,
key: [8]u32,
cv_stack: [54][8]u32 = undefined,
cv_stack_len: u8 = 0,
flags: u8,

Types

Namespaces

Functions

fn final(self: *const Blake3, out_slice: []u8) void

Finalize the hash and write any number of output bytes.

fn hash(b: []const u8, out: []u8, options: Options) void

No documentation provided.

fn init(options: Options) Blake3

Construct a new Blake3 for the hash function, with an optional key

fn initKdf(context: []const u8, options: KdfOptions) Blake3

Construct a new Blake3 for the key derivation function. The context string sh…

Construct a new Blake3 for the key derivation function. The context string should be hardcoded, globally unique, and application-specific.

fn update(self: *Blake3, input_slice: []const u8) void

Add input to the hash state. This can be called any number of times.

fn writer(self: *Blake3) Writer

No documentation provided.

Values

Error Sets