package core:crypto/whirlpool

Types

Whirlpool_Context ¶

Whirlpool_Context :: struct {
	bitlength:   [32]u8,
	buffer:      [64]u8,
	buffer_bits: int,
	buffer_pos:  int,
	hash:        [8]u64,
}

Constants

DIGEST_SIZE ¶

DIGEST_SIZE :: 64

ROUNDS ¶

ROUNDS :: 10

Variables

C0 ¶

C0: [256]u64 = …

C1 ¶

C1: [256]u64 = …

C2 ¶

C2: [256]u64 = …

C3 ¶

C3: [256]u64 = …

C4 ¶

C4: [256]u64 = …

C5 ¶

C5: [256]u64 = …

C6 ¶

C6: [256]u64 = …

C7 ¶

C7: [256]u64 = …

RC ¶

RC: [11]u64 = …

Procedures

final ¶

final :: proc "odin" (ctx: ^Whirlpool_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: ^Whirlpool_Context) {…}

transform ¶

transform :: proc "odin" (ctx: ^Whirlpool_Context) {…}

update ¶

update :: proc "odin" (ctx: ^Whirlpool_Context, source: []u8) {…}

Procedure Groups

Source Files

Generation Information

Generated with odin version dev-2023-03 (vendor "odin") Windows_amd64 @ 2023-03-29 21:09:05.365432700 +0000 UTC