package
1.1.3
Repository: https://github.com/protonmail/go-crypto.git
Documentation: pkg.go.dev

# Functions

Argon2 writes to out the key derived from the password (in) with the Argon2 function (the crypto refresh, section 3.7.1.4).
Generate generates valid parameters from given configuration.
Iterated writes to out the result of computing the Iterated and Salted S2K function (RFC 4880, section 3.7.1.3) using the given hash, input passphrase, salt and iteration count.
Parse reads a binary specification for a string-to-key transformation from r and returns a function which performs that transform.
ParseIntoParams reads a binary specification for a string-to-key transformation from r and returns a struct describing the s2k parameters.
Salted writes to out the result of computing the Salted S2K function (RFC 4880, section 3.7.1.2) using the given hash, input passphrase and salt.
Serialize salts and stretches the given passphrase and writes the resulting key into key.
Simple writes to out the result of computing the Simple S2K function (RFC 4880, section 3.7.1.1) using the given hash and input passphrase.

# Constants

Defines the default S2KMode constants 0 (simple), 1(salted), 3(iterated), 4(argon2).
No description provided by the author
Defines the default S2KMode constants 0 (simple), 1(salted), 3(iterated), 4(argon2).
Defines the default S2KMode constants 0 (simple), 1(salted), 3(iterated), 4(argon2).
Defines the default S2KMode constants 0 (simple), 1(salted), 3(iterated), 4(argon2).
Defines the default S2KMode constants 0 (simple), 1(salted), 3(iterated), 4(argon2).

# Structs

Argon2Config stores the Argon2 parameters A nil *Argon2Config is valid and results in all default.
Config collects configuration parameters for s2k key-stretching transformations.
Params contains all the parameters of the s2k packet.

# Type aliases

Cache stores keys derived with s2k functions from one passphrase to avoid recomputation if multiple items are encrypted with the same parameters.
No description provided by the author