Expand description

PGP cleartext framework

The PGP cleartext framework is a mechanism to store PGP signatures inline with the cleartext data that is being signed.

The cleartext framework is defined by RFC 4880 Section 7 and this implementation aims to be conformant with the specification.

PGP cleartext signatures are text documents beginning with -----BEGIN PGP SIGNED MESSAGE-----. They have the form:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: <digest>

<normalized signed content>
-----BEGIN PGP SIGNATURE-----
<headers>

<signature data>
-----END PGP SIGNATURE-----

Structs

A reader capable of extracting PGP cleartext signatures as defined by RFC 4880 Section 7.

Parsed cleartext signatures data.

Enums

Wrapper around content digesting to work around lack of clone() in pgp crate.

Functions

Produce a cleartext signature over data.