Documentation ¶
Index ¶
- func Decrypt(entity *openpgp.Entity, encrypted []byte) ([]byte, error)
- func Encrypt(entity *openpgp.Entity, message []byte) ([]byte, error)
- func GetEntity(publicKey []byte, privateKey []byte) (*openpgp.Entity, error)
- func Sign(entity *openpgp.Entity, message []byte) ([]byte, error)
- func Verify(publicKeyEntity *openpgp.Entity, message []byte, signature []byte) error
- type PGPKeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PGPKeyPair ¶
func GenerateKeyPair ¶
func GenerateKeyPair(fullname string, comment string, email string) (PGPKeyPair, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.