Documentation ¶
Index ¶
- func Decrypt(cipherArmored []byte, keys openpgp.EntityList) ([]byte, error)
- func Encrypt(msg []byte, pubkeys openpgp.EntityList) ([]byte, error)
- func ReadArmoredKeyFile(path string) (openpgp.EntityList, error)
- func ReadPrivateKeyFile(path string, password []byte) (openpgp.EntityList, error)
- func Sign(message []byte, pubKey openpgp.EntityList) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadArmoredKeyFile ¶
func ReadArmoredKeyFile(path string) (openpgp.EntityList, error)
ReadArmoredKeyFile attempts to read the filepath and parses an armored GPG key
func ReadPrivateKeyFile ¶
func ReadPrivateKeyFile(path string, password []byte) (openpgp.EntityList, error)
ReadPrivateKeyFile attempts to read the filepath and parses an armored GPG private key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.