1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! # pretty-good overview
//!
//! pretty-good is an implementation of RFC4880 (OpenPGP Message Format), capable of reading
//! OpenPGP packets into usable Rust structures, and creating and writing OpenPGP packets
//! programmatically in Rust.
//!
//! The primary structure of pretty-good is the [`Packet`] enum, which contains a variant for each
//! possible type of OpenPGP packet. Each variant that has been implemented contains a single
//! field, which is a structure representing the contents of that packet type. For example,
//! `Packet::Signature` contains a [`SignaturePacket`], which can be used to read and write OpenPGP
//! signatures.
//!
//! [`Packet`]s are read by calling [`Packet::from_bytes`], and can be serialized by calling
//! [`Packet::to_bytes`].
//!
//! [`Packet`]: enum.Packet.html
//! [`Packet::to_bytes`]: enum.Packet.html#method.to_bytes
//! [`Packet::from_bytes`]: enum.Packet.html#method.from_bytes
//! [`SignaturePacket`]: struct.SignaturePacket.html
extern crate byteorder;
extern crate bzip2;
extern crate digest;
#[macro_use]
extern crate failure;
#[macro_use]
extern crate failure_derive;
extern crate flate2;
extern crate md5;
#[macro_use]
extern crate nom;
extern crate num;
extern crate ripemd160;
extern crate sha1;
extern crate sha2;
extern crate yasna;

mod compression;
mod key;
mod literal;
mod marker;
mod packet;
mod s2k;
mod signature;
mod types;
mod userid;
mod util;

pub use compression::*;
pub use key::*;
pub use literal::*;
pub use packet::*;
pub use s2k::*;
pub use signature::*;
pub use types::*;