package core:crypto/blake2s

⌘K
Ctrl+K
or
/

    Overview

    package blake2s implements the BLAKE2s 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.

    Procedures (5)
    Procedure Groups (0)

    This section is empty.

    Types

    Context ¶

    Context :: _blake2.Blake2s_Context
     

    Context is a BLAKE2s instance.

    Constants

    BLOCK_SIZE ¶

    BLOCK_SIZE :: _blake2.BLAKE2S_BLOCK_SIZE
     

    BLOCK_SIZE is the BLAKE2s block size in bytes.

    DIGEST_SIZE ¶

    DIGEST_SIZE :: 32
     

    DIGEST_SIZE is the BLAKE2s digest size in bytes.

    Variables

    This section is empty.

    Procedures

    clone ¶

    clone :: proc(ctx, other: ^_blake2.Blake2s_Context) {…}
     

    clone clones the Context other into ctx.

    final ¶

    final :: proc(ctx: ^_blake2.Blake2s_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.Blake2s_Context) {…}
     

    init initializes a Context with the default BLAKE2s config.

    reset ¶

    reset :: proc(ctx: ^_blake2.Blake2s_Context) {…}
     

    reset sanitizes the Context. The Context must be re-initialized to be used again.

    update ¶

    update :: proc(ctx: ^_blake2.Blake2s_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-04 (vendor "odin") Windows_amd64 @ 2024-04-15 21:11:25.883257200 +0000 UTC