package core:crypto/blake2b

Index

Types (1)
Constants (1)
Variables (0)

This section is empty.

Procedure Groups (1)

Types

Blake2b_Context ¶

Blake2b_Context :: _blake2.Blake2b_Context

Constants

DIGEST_SIZE ¶

DIGEST_SIZE :: 64

Variables

This section is empty.

Procedures

final ¶

final :: proc "contextless" (ctx: ^_blake2.Blake2b_Context, hash: []u8) {…}

hash_bytes ¶

hash_bytes :: proc "odin" (data: []u8) -> [64]u8 {…}
 

hash_bytes will hash the given input and return the computed hash

hash_bytes_to_buffer ¶

hash_bytes_to_buffer :: proc "odin" (data, hash: []u8) {…}
 

hash_bytes_to_buffer will hash the given input and write the computed hash into the second parameter. It requires that the destination buffer is at least as big as the digest size

hash_file ¶

hash_file :: proc "odin" (hd: os.Handle, load_at_once: bool = false) -> ([64]u8, bool) {…}
 

hash_file will read the file provided by the given handle and compute a hash

hash_stream ¶

hash_stream :: proc "odin" (s: io.Stream) -> ([64]u8, bool) {…}
 

hash_stream will read the stream in chunks and compute a hash from its contents

hash_string ¶

hash_string :: proc "odin" (data: string) -> [64]u8 {…}
 

hash_string will hash the given input and return the computed hash

hash_string_to_buffer ¶

hash_string_to_buffer :: proc "odin" (data: string, hash: []u8) {…}
 

hash_string_to_buffer will hash the given input and assign the computed hash to the second parameter. It requires that the destination buffer is at least as big as the digest size

init ¶

init :: proc "odin" (ctx: ^_blake2.Blake2b_Context) {…}

update ¶

update :: proc "contextless" (ctx: ^_blake2.Blake2b_Context, hash: []u8) {…}

Procedure Groups

Source Files

Generation Information

Generated with odin version dev-2022-12 (vendor "odin") Windows_amd64 @ 2022-12-06 21:08:55.193988100 +0000 UTC