Documentation
¶
Index ¶
- func GetEntityList(armored []byte) (openpgp.EntityList, error)
- func MessageDecrypt(entityList openpgp.EntityList, encrypted []byte) ([]byte, error)
- func MessageEncrypt(entityList openpgp.EntityList, message []byte) ([]byte, error)
- func PrivateKeyDecrypt(entity *openpgp.Entity, passphrase []byte) (*openpgp.Entity, error)
- func Sign(entity *openpgp.Entity, message []byte) ([]byte, error)
- func StreamDecrypt(entityList openpgp.EntityList, src io.Reader, dst io.Writer) error
- func StreamEncrypt(entityList openpgp.EntityList, src io.Reader, dst io.Writer) error
- func Unarmor(input string) (*armor.Block, error)
- func Verify(entity *openpgp.Entity, message []byte, signature []byte) error
- type Config
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEntityList ¶
func GetEntityList(armored []byte) (openpgp.EntityList, error)
func MessageDecrypt ¶
func MessageDecrypt(entityList openpgp.EntityList, encrypted []byte) ([]byte, error)
func MessageEncrypt ¶
func MessageEncrypt(entityList openpgp.EntityList, message []byte) ([]byte, error)
func PrivateKeyDecrypt ¶
func StreamDecrypt ¶
func StreamEncrypt ¶
Types ¶
type Config ¶
type Config struct { packet.Config // Expiry is the duration that the generated key will be valid for. Expiry time.Duration }
Config for generating keys.
Click to show internal directories.
Click to hide internal directories.