package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev

# Functions

HashIdToHash returns a crypto.Hash which corresponds to the given OpenPGP hash id.
HashIdToString returns the name of the hash function corresponding to the given OpenPGP hash id, or panics if id is unknown.
HashIdToHash returns an OpenPGP hash id which corresponds the given Hash.
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.
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.

# Structs

Config collects configuration parameters for s2k key-stretching transformatioms.