Documentation ¶
Overview ¶
Package clearsign generates and processes OpenPGP, clear-signed data. See RFC 4880, section 7.
Clearsigned messages are cryptographically signed, but the contents of the message are kept in plaintext so that it can be read without special tools.
Deprecated: this package is unmaintained except for security fixes. New applications should consider a more focused, modern alternative to OpenPGP for their specific task. If you are required to interoperate with OpenPGP systems and need a maintained package, consider a maintained community fork. See https://golang.org/issue/37497.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { Headers textproto.MIMEHeader // Optional message headers Plaintext []byte // The original message text Bytes []byte // The signed message ArmoredSignature *armor.Block // The signature block }
A Block represents a clearsigned message. A signature on a Block can be checked by passing Bytes into openpgp.CheckDetachedSignature.