# Functions
FilterExpiredKeys takes a given KeyRing list and it returns only those KeyRings which contain at least, one unexpired Key.
GenerateSessionKeyAlgo generates a random key of the correct length for the specified algorithm.
IsPGPMessage checks if data if has armored PGP message format.
NewConstantClock returns a Clock, which always returns unixTime.
NewFileMetadata creates literal metadata.
NewKey creates a new key from the first key in the unarmored or armored binary data.
NewKeyFromArmored creates a new key from the first key in an armored string.
NewKeyFromEntity creates a key from the provided go-crypto/openpgp entity.
NewKeyFromReader reads binary or armored data into a Key object.
NewKeyFromReaderExplicit reads binary or armored 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.
NewKeyWithCloneFlag creates a new key from the first key in the unarmored or armored binary data.
NewMetadata creates new default literal metadata with utf-8 set to isUTF8.
NewPGPMessage generates a new PGPMessage from the unarmored binary data.
NewPGPMessageBuffer creates a message buffer.
NewPGPMessageFromArmored generates a new PGPMessage from an armored string ready for decryption.
NewPGPMessageWithCloneFlag generates a new PGPMessage from the unarmored binary data.
NewPGPSplitMessage generates a new PGPSplitMessage from the binary unarmored keypacket and datapacket.
No description provided by the author
NewPGPSplitWriter creates a type that implements the PGPSplitWriter interface for encrypting a plaintext where the output PGP packets should be written to the different streams provided.
NewPGPSplitWriterDetachedSignature creates a type that implements the PGPSplitWriter interface for encrypting a plaintext where the output PGP messages should be written to the different streams provided.
NewPGPSplitWriterFromWriter creates a type that implements the PGPSplitWriter interface for encrypting a plaintext where the output PGP messages to the provided Writer.
NewPGPSplitWriterKeyAndData creates a type that implements the PGPSplitWriter interface for encrypting a plaintext where the output PGP packets should be written to the different streams provided.
NewPrivateKeyFromArmored creates a new secret key from the first key in an armored string and unlocks it with the password.
NewSessionKeyFromToken creates a SessionKey struct with the given token and algorithm.
NewSigningContext creates a new signing context.
NewVerificationContext creates a new verification context.
PGP creates a PGPHandle to interact with the API.
PGPWithProfile creates a PGPHandle to interact with the API.
RandomToken generates a random token with the specified key size.
SignatureHexKeyIDs returns the key identifiers of the keys that were used to create the signatures in hexadecimal form.
SignatureKeyIDs returns the key identifiers of the keys that were used to create the signatures.
ZeroClock returns a Clock, which always returns the zero time.Time.
# Constants
PGPEncoding determines the message encoding.
PGPEncoding determines the message encoding.
Default for other int8 values.
KeyGenerationCurve25519 allows to override the output key algorithm in key generation to curve25519 (as defined in RFC9580).
KeyGenerationCurve25519Legacy allows to override the output key algorithm in key generation to curve25519 legacy (as defined in RFC4880bis).
KeyGenerationCurve448 allows to override the output key algorithm in key generation to curve448 (as defined in RFC9580).
KeyGenerationRSA4096 allows to override the output key algorithm in key generation to rsa 4096.
# Structs
DecryptionHandleBuilder allows to configure a decryption handle to decrypt a pgp message.
EncryptionHandleBuilder allows to configure a decryption handle to decrypt an OpenPGP message.
Identity contains the name and the email of a key holder.
Key contains a single private or public key.
KeyGenerationBuilder allows to configure a key generation handle to generate OpenPGP keys.
KeyRing contains multiple private and public keys.
No description provided by the author
No description provided by the author
PGPMessage stores a PGP-encrypted message.
No description provided by the author
SessionKey stores a decrypted session key.
SignatureVerificationError is returned from Decrypt and VerifyDetached functions when signature verification fails.
SignHandleBuilder allows to configure a sign handle to sign data with OpenPGP.
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.
VerifiedDataResult is a result that contains data and the result of a potential signature verification on the data.
VerifiedSignature is a result of a signature verification.
VerifyCleartextResult is a result of a cleartext message verification.
VerifyDataReader is used for reading data that should be verified with a signature.
VerifyHandleBuilder configures a VerifyHandle handle.
VerifyResult is a result of a pgp message signature verification.
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
PGPDecryption is an interface for decrypting pgp messages with GopenPGP.
PGPEncryption is an interface for encrypting messages with GopenPGP.
PGPKeyGeneration is an interface for generating pgp keys with GopenPGP.
PGPSign is an interface for creating signature messages with GopenPGP.
No description provided by the author
PGPSplitWriter is an interface to write different parts of a PGP message (i.e., packets) to different streams.
PGPVerify is an interface for verifying detached signatures with GopenPGP.
No description provided by the author
No description provided by the author
WriteCloser replicates the io.WriteCloser interface for go-mobile.
Writer replicates the io.Writer interface for go-mobile.