# Functions
BoolPointer is a helper function to set a boolean pointer in the Config.
DecryptPrivateKeys decrypts all encrypted keys with the given config and passphrase.
EncryptPrivateKeys encrypts all unencrypted keys with the given config and passphrase.
No description provided by the author
NewDecrypterPrivateKey creates a PrivateKey from a *{rsa|elgamal|ecdh|x25519|x448}.PrivateKey.
No description provided by the author
NewDSAPublicKey returns a PublicKey that wraps the given dsa.PublicKey.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewElGamalPublicKey returns a PublicKey that wraps the given elgamal.PublicKey.
No description provided by the author
NewOCFBDecrypter returns a cipher.Stream which decrypts data with OpenPGP's cipher feedback mode using the given cipher.Block.
NewOCFBEncrypter returns a cipher.Stream which encrypts data with OpenPGP's cipher feedback mode using the given cipher.Block, and an initial amount of ciphertext.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewRSAPublicKey returns a PublicKey that wraps the given rsa.PublicKey.
No description provided by the author
NewSignerPrivateKey creates a PrivateKey from a crypto.Signer that implements RSA, ECDSA or EdDSA.
NewUserAttribute creates a new user attribute packet containing the given subpackets.
NewUserAttributePhoto creates a user attribute packet containing the given images.
NewUserId returns a UserId or nil if any of the arguments contain invalid characters.
NewVerifiableSig returns a struct of type VerifiableSignature referencing the input signature.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OpaqueSubpackets extracts opaque, unparsed OpenPGP subpackets from their byte representation.
Read reads a single OpenPGP packet from the given io.Reader.
ReadWithCheck reads a single OpenPGP message packet from the given io.Reader.
SaltLengthForHash selects the required salt length for the given hash algorithm, as per Table 23 (Hash algorithm registry) of the crypto refresh.
SerializeCompressed serializes a compressed data packet to w and returns a WriteCloser to which the literal data packets themselves can be written and which MUST be closed on completion.
SerializeEncryptedKey serializes an encrypted key packet to w that contains key, encrypted to pub.
SerializeEncryptedKeyAEAD serializes an encrypted key packet to w that contains key, encrypted to pub.
SerializeEncryptedKeyAEADwithHiddenOption serializes an encrypted key packet to w that contains key, encrypted to pub.
SerializeEncryptedKeyWithHiddenOption serializes an encrypted key packet to w that contains key, encrypted to pub.
SerializeLiteral serializes a literal data packet to w and returns a WriteCloser to which the data itself can be written and which MUST be closed on completion.
SerializeMarker writes a marker packet to writer.
SerializeSymmetricallyEncrypted serializes a symmetrically encrypted packet to w and returns a WriteCloser to which the to-be-encrypted packets can be written.
SerializeSymmetricKeyEncrypted serializes a symmetric key packet to w.
SerializeSymmetricKeyEncryptedAEADReuseKey serializes a symmetric key packet to w.
SerializeSymmetricKeyEncryptedReuseKey serializes a symmetric key packet to w.
SignatureSaltForHash generates a random signature salt with the length for the given hash algorithm.
VerifyHashTag returns nil iff sig appears to be a plausible signature of the data hashed into signed, based solely on its HashTag.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
First octet of key flags.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RFC 6637, Section 5.
No description provided by the author
No description provided by the author
No description provided by the author
https://www.ietf.org/archive/id/draft-koch-eddsa-for-openpgp-04.txt.
No description provided by the author
No description provided by the author
Deprecated in RFC 4880, Section 13.5.
No description provided by the author
https://datatracker.ietf.org/doc/html/draft-ietf-openpgp-crypto-refresh.
No description provided by the author
S2KAEAD use authenticated encryption.
S2KCHECKSUM sum check.
S2KNON unencrypt.
S2KSHA1 sha1 sum check.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
A global feature flag to indicate v5 support.
# Structs
AEADConfig collects a number of AEAD parameters along with sensible defaults.
AEADEncrypted represents an AEAD Encrypted Packet.
CheckReader is similar to Reader but additionally uses the pushdown automata to verify the read packet sequence.
CipherSuite contains a combination of Cipher and Mode.
Compressed represents a compressed OpenPGP packet.
CompressionConfig contains compressor configuration settings.
Config collects a number of parameters along with sensible defaults.
EncryptedKey represents a public-key encrypted session key.
LiteralData represents an encrypted file.
No description provided by the author
Notation type represents a Notation Data subpacket see https://tools.ietf.org/html/rfc4880#section-5.2.3.16.
OnePassSignature represents a one-pass signature packet.
OpaquePacket represents an OpenPGP packet as raw, unparsed data.
OpaqueReader reads OpaquePackets from an io.Reader.
OpaqueSubpacket represents an unparsed OpenPGP subpacket, as found in signature and user attribute packets.
PrivateKey represents a possibly encrypted private key.
PublicKey represents an OpenPGP public key.
Reader reads packets from an io.Reader and allows packets to be 'unread' so that they result from the next call to Next.
Recipient type represents a Intended Recipient Fingerprint subpacket See https://datatracker.ietf.org/doc/html/draft-ietf-openpgp-crypto-refresh#name-intended-recipient-fingerpr.
SequenceVerifier is a pushdown automata to verify PGP messages packet sequences according to rfc4880.
Signature represents a signature.
SymmetricallyEncrypted represents a symmetrically encrypted byte string.
SymmetricKeyEncrypted represents a passphrase protected session key.
UnsupportedPackage represents a OpenPGP packet with a known packet type but with unsupported content.
UserAttribute is capable of storing other types of data about a user beyond name, email and a text comment.
UserId contains text that is intended to represent the name and email address of the key holder.
VerifiableSignature internally keeps state if the the signature has been verified before.
# Interfaces
EncryptedDataPacket holds encrypted data.
Packet represents an OpenPGP packet.
No description provided by the author
# Type aliases
AEADMode represents the different Authenticated Encryption with Associated Data specified for OpenPGP.
CipherFunction represents the different block ciphers specified for OpenPGP.
CompressionAlgo Represents the different compression algorithms supported by OpenPGP (except for BZIP2, which is not currently supported).
Curve is a mapping to supported ECC curves for key generation.
InputSymbol defines the input alphabet of the PDA.
An OCFBResyncOption determines if the "resynchronization step" of OCFB is performed.
Padding type represents a Padding Packet (Tag 21).
PublicKeyAlgorithm represents the different public key system specified for OpenPGP.
ReasonForRevocation represents a revocation reason code as per RFC4880 section 5.2.3.23.
S2KType s2k packet type.
SignatureType represents the different semantic meanings of an OpenPGP signature.
StackSymbol defines the stack alphabet of the PDA.
State defines the states of the PDA.
TrustAmount represents a trust amount per RFC4880 5.2.3.13.
TrustLevel represents a trust level per RFC4880 5.2.3.13.