package core:crypto/hkdf

⌘K
Ctrl+K
or
/

    Overview

    package hkdf implements the HKDF HMAC-based Extract-and-Expand Key Derivation Function.

    See: https://www.rfc-editor.org/rfc/rfc5869

    Index

    Types (0)

    This section is empty.

    Constants (0)

    This section is empty.

    Variables (0)

    This section is empty.

    Procedure Groups (0)

    This section is empty.

    Types

    This section is empty.

    Constants

    This section is empty.

    Variables

    This section is empty.

    Procedures

    expand ¶

    expand :: proc(algorithm: crypto_hash.Algorithm, prk, info, dst: []u8) {…}
     

    expand derives output keying material (OKM) via the HKDF-Expand algorithm, with the specified hash function, pseudorandom key (PRK), and optional info. The dst buffer must be less-than-or-equal to 255 HMAC tags.

    extract ¶

    extract :: proc(algorithm: crypto_hash.Algorithm, salt, ikm, dst: []u8) {…}
     

    extract derives a pseudorandom key (PRK) via the HKDF-Extract algorithm, with the specified hash function, salt, and input keying material (IKM). It requires that the dst buffer be the HMAC tag size for the specified hash function.

    extract_and_expand ¶

    extract_and_expand :: proc(algorithm: crypto_hash.Algorithm, salt, ikm, info, dst: []u8) {…}
     

    extract_and_expand derives output keying material (OKM) via the HKDF-Extract and HKDF-Expand algorithms, with the specified has function, salt, input keying material (IKM), and optional info. The dst buffer must be less-than-or-equal to 255 HMAC tags.

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2024-11 (vendor "odin") Windows_amd64 @ 2024-11-16 21:10:09.814954700 +0000 UTC