core/crypto/tuplehash

tuplehash

Types

1

Procedures

7

final

final :: proc(ctx: ^Context, hash: []u8, finalize_clone: bool)Source

final finalizes the Context, writes the digest to hash, and calls reset on the Context.

If and only if (⟺) finalize_clone is set, final will work on a copy of the Context, which is useful for for calculating rolling digests.

read

read :: proc(ctx: ^Context, dst: []u8)Source

read reads output from the TupleHashXOF instance. There is no practical upper limit to the amount of data that can be read from TupleHashXOF. After read has been called one or more times, further calls to write_element will panic.

reset

reset :: proc(ctx: ^Context)Source

reset sanitizes the Context. The Context must be re-initialized to be used again.

write_element

write_element :: proc(ctx: ^Context, data: []u8)Source

write_element writes a tuple element into the TupleHash or TupleHashXOF instance. This MUST not be called after any reads have been done, and any attempts to do so will panic.

Reference search

Find anything

Documentation preferences

Settings

System theme variants

Used only while Theme is set to System.