# Functions
DecryptMessageWithPassword decrypts password protected pgp binary messages.
DecryptSessionKeyWithPassword decrypts the binary symmetrically encrypted session key packet and returns the session key.
EncryptMessageWithPassword encrypts a PlainMessage to PGPMessage with a SymmetricKey.
EncryptSessionKeyWithPassword encrypts the session key with the password and returns a binary symmetrically encrypted session key packet.
FilterExpiredKeys takes a given KeyRing list and it returns only those KeyRings which contain at least, one unexpired Key.
GenerateKey generates a key of the given keyType ("rsa" or "x25519").
GenerateRSAKeyWithPrimes generates a RSA key using the given primes.
GenerateSessionKey generates a random key for the default cipher.
GenerateSessionKeyAlgo generates a random key of the correct length for the specified algorithm.
GetTime gets latest cached time.
GetUnixTime gets latest cached time.
IsPGPMessage checks if data if has armored PGP message format.
NewClearTextMessage generates a new ClearTextMessage from data and signature.
NewClearTextMessageFromArmored returns the message body and unarmored signature from a clearsigned message.
NewKey creates a new key from the first key in the unarmored binary data.
NewKeyFromArmored creates a new key from the first key in an armored string.
NewKeyFromArmoredReader reads an armored data into a key.
No description provided by the author
NewKeyFromReader reads binary data into a Key object.
NewKeyRing creates a new KeyRing, empty if key is nil.
NewKeyRingFromBinary creates a new keyring with all the keys contained in the unarmored binary data.
NewPGPMessage generates a new PGPMessage from the unarmored binary data.
NewPGPMessageFromArmored generates a new PGPMessage from an armored string ready for decryption.
NewPGPSignature generates a new PGPSignature from the unarmored binary data.
NewPGPSignatureFromArmored generates a new PGPSignature from the armored string ready for verification.
NewPGPSplitMessage generates a new PGPSplitMessage from the binary unarmored keypacket, datapacket, and encryption algorithm.
NewPGPSplitMessageFromArmored generates a new PGPSplitMessage by splitting an armored message into its session key packet and symmetrically encrypted data packet.
NewPlainMessage generates a new binary PlainMessage ready for encryption, signature, or verification from the unencrypted binary data.
NewPlainMessageFromFile generates a new binary PlainMessage ready for encryption, signature, or verification from the unencrypted binary data.
NewPlainMessageFromString generates a new text PlainMessage, ready for encryption, signature, or verification from an unencrypted string.
No description provided by the author
No description provided by the author
NewSigningContext creates a new signing context.
NewVerificationContext creates a new verification context.
RandomToken generates a random token with the specified key size.
SetKeyGenerationOffset updates the offset when generating keys.
UpdateTime updates cached time.
# Structs
AttachmentProcessor keeps track of the progress of encrypting an attachment (optimized for encrypting large files).
A ClearTextMessage is a signed but not encrypted PGP message, i.e.
EncryptSplitResult is used to wrap the encryption writecloser while storing the key packet.
GopenPGP is used as a "namespace" for many of the functions in this package.
Identity contains the name and the email of a key holder.
Key contains a single private or public key.
KeyRing contains multiple private and public keys.
ManualAttachmentProcessor keeps track of the progress of encrypting an attachment (optimized for encrypting large files).
PGPMessage stores a PGP-encrypted message.
PGPSignature stores a PGP-encoded detached signature.
PGPSplitMessage contains a separate session key packet and symmetrically encrypted data packet.
PlainMessage stores a plain text / unencrypted message.
No description provided by the author
PlainMessageReader is used to wrap the data of the decrypted plain message.
SessionKey stores a decrypted session key.
SignatureCollector structure.
SignatureVerificationError is returned from Decrypt and VerifyDetached functions when signature verification fails.
SigningContext gives the context that will be included in the signature's notation data.
VerificationContext gives the context that will be used to verify the signature.
# Interfaces
MIMECallbacks defines callback methods to process a MIME message.
No description provided by the author
No description provided by the author
No description provided by the author