Documentation
¶
Index ¶
- Constants
- func EncryptArmored(public, plain io.Reader) ([]byte, error)
- func FingerprintArmored(public io.Reader) ([]byte, error)
- func NonceHex() (nonce []byte, err error)
- func VerifyArmoredSig(public, sig, file io.Reader) (t time.Time, err error)
- func VerifyEncryptedArmored(input io.Reader) (bool, error)
- func VerifyHexFingerprint(fingerprint string) bool
- func VerifyPublicArmored(input io.Reader) (bool, error)
Constants ¶
View Source
const (
// NonceHexLen is the length of a hexadecimal nonce in bytes.
NonceHexLen = 2 * nonceLen
)
Variables ¶
This section is empty.
Functions ¶
func EncryptArmored ¶
EncryptArmored encrypts plaintext for one recipient by proving a plaintext and an armored public key. Returns an armored, encrypted PGP message.
The recipient is hidden using a speculative key ID.
func FingerprintArmored ¶
FingerprintArmored gets the fingerprint from an armored public key.
func VerifyArmoredSig ¶
VerifyArmoredSig uses an armored public key to verify an armored, detached signature. Returns the signature creation time.
func VerifyEncryptedArmored ¶
VerifyEncryptedArmored tries to validate that input is indeed an armored, encrypted PGP message.
func VerifyHexFingerprint ¶
VerifyHexFingerprint does rough checks to see if the input fingerprint is valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.