package core:crypto/shake

⌘K
Ctrl+K
or
/

    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" (ctx: ^_sha3.Sha3_Context, hash: []u8) {…}

    hash_bytes_128 ¶

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

    hash_bytes_128 will hash the given input and return the computed hash

    hash_bytes_256 ¶

    hash_bytes_256 :: proc(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(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(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(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(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(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(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(data: string) -> [16]u8 {…}
     

    hash_string_128 will hash the given input and return the computed hash

    hash_string_256 ¶

    hash_string_256 :: proc(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(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(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(ctx: ^_sha3.Sha3_Context) {…}

    update ¶

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

    Procedure Groups

    Source Files

    Generation Information

    Generated with odin version dev-2023-06 (vendor "odin") Windows_amd64 @ 2023-06-02 21:08:32.561913900 +0000 UTC