package
0.0.0-20240829150431-63fc2867930b
Repository: https://github.com/kisom/cryptutils.git
Documentation: pkg.go.dev

# Functions

DumpKeyStore locks the keystore and serialises it to a byte slice, i.e.
LoadKeyStore attempts to load a keystore from the given path.
MarshalSecretStore serialises and encrypts the data store to a byte slice suitable for writing to disk.
NewPrivateKeyStore builds a keystore from a private key.
NewSecretStore initialises a new secret store.
ParseVerifiedKey parses a verified key from a byte slice.
UnmarshalSecretStore decrypts and parses the secret store contained in the input byte slice.

# Constants

KeyStoreVersion is the current version of the keystore format.
SecretStoreVersion is the current version of the secret store format.
SecretType is the PEM type used when exporting the store.
VerifiedKeyType is the PEM type used when exporting a verified key.

# Structs

A KeyStore represents a collection of keys with an owner.
A PublicKeyRecord contains information about a public key contained in the data store.
A SecretRecord stores a secret in the secret store.
A SecretStore contains a collection of secrets protected by a passphrase.
A VerifiedKey is a structure that associates a signature with a public key.