Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArmoredSign ¶
ArmoredSign signs message with the private key and writes an armored signature to out. Note that PrivateKey must have been decrypted if it is encrypted. See FindPrivateKey for more details.
Types ¶
type Key ¶
Key identifies a specific public key in an Entity. This is either the Entity's primary key or a subkey. See openpgp.Key for more details.
func FindKeysInArmoredKeyRing ¶
FindKeysInKeyRing finds the key with ID in keyringFile. If passphrase is not an empty string and a private key that needs decrypting is founds, the passphrase will be used to decrypt it. It returns an error if no keys are found in keyring.
func (Key) PrimaryIdentity ¶
PrimaryIdentity returns the Identity marked as primary or the first identity if none are so marked.