Documentation ¶
Index ¶
- func ArmoredKeyToEntity(key []byte) (*openpgp.Entity, error)
- func CheckClearSignedSignature(buf []byte, entity *openpgp.Entity) (bool, error)
- func CheckDetachedSignature(message, signature []byte, entity *openpgp.Entity) (bool, error)
- func ClearSignMessage(message []byte, entity *openpgp.Entity) ([]byte, error)
- func DecryptMessage(message []byte, entity *openpgp.Entity) ([]byte, error)
- func DetachSignMessage(message []byte, entity *openpgp.Entity) ([]byte, error)
- func EncryptMessage(message []byte, entity *openpgp.Entity) ([]byte, error)
- func SerializeEntity(entity *openpgp.Entity) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArmoredKeyToEntity ¶
ArmoredKeyToEntity returns a entity from the given ascii armored key
TODO: decrypt private key if its encrypted
func CheckClearSignedSignature ¶
CheckClearSignedSignature checks if the given ascii armored clear signed signature has ben signed by the given entity
func CheckDetachedSignature ¶
CheckDetachedSignature checks if the given ascii armored detached signature for the message has been signed by the given entity
func ClearSignMessage ¶
ClearSignMessage generates a clear-signed message using the private key from the given entity.
func DecryptMessage ¶
DecryptMessage decrypts a armored message using the given entity
func DetachSignMessage ¶
DetachSignMessage generates a amored detached sign message using a entity
func EncryptMessage ¶
EncryptMessage encrypts a message to a entity and returns the encrypted ascii armored data block
Types ¶
This section is empty.