Documentation
¶
Index ¶
- Constants
- func X25519IdentityFromKey(key, salt []byte) (*age.X25519Identity, error)
- func X25519IdentityFromPassword(password, salt []byte) (*age.X25519Identity, error)
- func X25519IdentityFromPasswordWithParameters(password, salt []byte, argon2idTime, argon2idMemory uint32, ...) (*age.X25519Identity, error)
Constants ¶
View Source
const ( DefaultArgon2idTime uint32 = 4 DefaultArgon2idMemory uint32 = 6291456 // KiB = 6 GiB DefaultArgon2idThreads uint8 = 8 )
Variables ¶
This section is empty.
Functions ¶
func X25519IdentityFromKey ¶
func X25519IdentityFromKey(key, salt []byte) (*age.X25519Identity, error)
X25519IdentityFromKey derives an age identity from a high-entropy key. Callers are responsible for ensuring that the provided key is suitably generated, e.g. by reading it from crypto/rand.
func X25519IdentityFromPassword ¶
func X25519IdentityFromPassword(password, salt []byte) (*age.X25519Identity, error)
X25519IdentityFromPassword derives an age identity from a password using Argon2id, with strong default parameters.
func X25519IdentityFromPasswordWithParameters ¶
func X25519IdentityFromPasswordWithParameters(password, salt []byte, argon2idTime, argon2idMemory uint32, argon2idThreads uint8) (*age.X25519Identity, error)
X25519IdentityFromPasswordWithParameters derives an age identity from a password, with custom Argon2id parameters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.