package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
NewDSAPublicKey returns a PublicKey that wraps the given dsa.PublicKey.
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
NewRSAPublicKey returns a PublicKey that wraps the given rsa.PublicKey.
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.
OpaqueSubpackets extracts opaque, unparsed OpenPGP subpackets from their byte representation.
Read reads a single OpenPGP packet from the given io.Reader.
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.
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.
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.

# 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
See RFC 4880, section 5.2.3.21 for details.
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
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

# Structs

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.
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.
PublicKeyV3 represents older, version 3 public keys.
Reader reads packets from an io.Reader and allows packets to be 'unread' so that they result from the next call to Next.
Signature represents a signature.
SignatureV3 represents older version 3 signatures.
SymmetricallyEncrypted represents a symmetrically encrypted byte string.
SymmetricKeyEncrypted represents a passphrase protected session key.
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.

# Interfaces

Packet represents an OpenPGP packet.

# Type aliases

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).
An OCFBResyncOption determines if the "resynchronization step" of OCFB is performed.
PublicKeyAlgorithm represents the different public key system specified for OpenPGP.
SignatureType represents the different semantic meanings of an OpenPGP signature.