core/crypto/argon2id

argon2id

Types

1

Constants

7

MAX_INPUT_SIZE

MAX_INPUT_SIZE :: (1 << 32) - 1Source

Implementation based on the RFC, Monocypher (CC0-1.0), and the reference code (CC0-1.0). MAX_INPUT_SIZE is the mamximum size of the various inputs (password, salt, secret, ad) in bytes.

Variables

4

Procedures

1

derive

derive :: proc( parameters: ^Parameters, password: []u8, salt: []u8, dst: []u8, secret: []u8, ad: []u8, sanitize: untyped boolean = true, allocator: mem.Allocator = context.allocator, ) -> (mem.Allocator_Error)Source

derive invokes Argon2id with the specified parameter set and inputs, and outputs the derived key to dst.

Reference search

Find anything

Documentation preferences

Settings

System theme variants

Used only while Theme is set to System.