package core:crypto/blake2b

⌘K
Ctrl+K
or
/

    Overview

    package blake2b implements the BLAKE2b 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.Blake2b_Context
     

    Context is a BLAKE2b instance.

    Constants

    BLOCK_SIZE ¶

    BLOCK_SIZE :: _blake2.BLAKE2B_BLOCK_SIZE
     

    BLOCK_SIZE is the BLAKE2b block size in bytes.

    DIGEST_SIZE ¶

    DIGEST_SIZE :: 64
     

    DIGEST_SIZE is the BLAKE2b digest size in bytes.

    Variables

    This section is empty.

    Procedures

    clone ¶

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

    clone clones the Context other into ctx.

    final ¶

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

    init initializes a Context with the default BLAKE2b config.

    reset ¶

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

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

    update ¶

    update :: proc(ctx: ^_blake2.Blake2b_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-10 (vendor "odin") Windows_amd64 @ 2024-10-05 21:10:06.078089300 +0000 UTC