Documentation
¶
Index ¶
- func Decrypt(encrypted []byte, entities ...*openpgp.Entity) ([]byte, error)
- func Encrypt(message []byte, entities ...*openpgp.Entity) ([]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 KeyPair
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyPair ¶
type KeyPair struct {
PublicKey PublicKey
PrivateKey PrivateKey
}
type PrivateKey ¶
type PrivateKey struct {
String string
RSA *rsa.PrivateKey
}
Click to show internal directories.
Click to hide internal directories.