package core:crypto/shake

Types

Shake_Context ¶

Shake_Context :: _sha3.Sha3_Context

Constants

DIGEST_SIZE_128 ¶

DIGEST_SIZE_128 :: 16

DIGEST_SIZE_256 ¶

DIGEST_SIZE_256 :: 32

Variables

This section is empty.

Procedures

final ¶

final :: proc "contextless" (c: ^_sha3.Sha3_Context, data: []u8) {…}

hash_bytes_128 ¶

hash_bytes_128 :: proc "odin" (data: []u8) -> [16]u8 {…}
 

hash_bytes_128 will hash the given input and return the computed hash

hash_bytes_256 ¶

hash_bytes_256 :: proc "odin" (data: []u8) -> [32]u8 {…}
 

hash_bytes_256 will hash the given input and return the computed hash

hash_bytes_to_buffer_128 ¶

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

hash_bytes_to_buffer_128 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_bytes_to_buffer_256 ¶

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

hash_bytes_to_buffer_256 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_128 ¶

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

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

hash_file_256 ¶

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

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

hash_stream_128 ¶

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

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

hash_stream_256 ¶

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

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

hash_string_128 ¶

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

hash_string_128 will hash the given input and return the computed hash

hash_string_256 ¶

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

hash_string_256 will hash the given input and return the computed hash

hash_string_to_buffer_128 ¶

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

hash_string_to_buffer_128 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

hash_string_to_buffer_256 ¶

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

hash_string_to_buffer_256 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: ^_sha3.Sha3_Context) {…}

update ¶

update :: proc "contextless" (c: ^_sha3.Sha3_Context, data: []u8) {…}

Procedure Groups

Source Files

Generation Information

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