package core:crypto/blake2b
Overview
package blake2b implements the BLAKE2b hash algorithm.
See: https://datatracker.ietf.org/doc/html/rfc7693 https://www.blake2.net
Index
Types (1)
Constants (2)
Variables (0)
This section is empty.
Procedure Groups (0)
This section is empty.
Types
Constants
BLOCK_SIZE ¶
BLOCK_SIZE :: _blake2.BLAKE2B_BLOCK_SIZE
BLOCK_SIZE is the BLAKE2b block size in bytes.
Variables
This section is empty.
Procedures
clone ¶
clone :: proc(ctx, other: ^_blake2.Blake2b_Context) {…}
clone clones the Context other into ctx.
final ¶
final :: proc(ctx: ^_blake2.Blake2b_Context, hash: []u8, finalize_clone: bool = false) {…}
final finalizes the Context, writes the digest to hash, and calls reset on the Context.
Iff finalize_clone is set, final will work on a copy of the Context, which is useful for for calculating rolling digests.
init ¶
init :: proc(ctx: ^_blake2.Blake2b_Context) {…}
init initializes a Context with the default BLAKE2b config.
reset ¶
reset :: proc(ctx: ^_blake2.Blake2b_Context) {…}
reset sanitizes the Context. The Context must be re-initialized to be used again.
update ¶
update :: proc(ctx: ^_blake2.Blake2b_Context, data: []u8) {…}
update adds more data to the Context.
Procedure Groups
This section is empty.
Source Files
Generation Information
Generated with odin version dev-2024-12 (vendor "odin") Windows_amd64 @ 2024-12-17 21:11:00.934103000 +0000 UTC