[][src]Module sequoia_openpgp::armor

ASCII Armor.

This module deals with ASCII Armored data (see Section 6 of RFC 4880).

Scope

This implements a subset of the ASCII Armor specification. Not supported multipart messages.

Memory allocations

Both the reader and the writer allocate memory in the order of the size of chunks read or written.

Examples

use sequoia_openpgp as openpgp;
use std::fs::File;
use openpgp::armor::{Reader, ReaderMode, Kind};

let mut file = File::open("somefile.asc")?;
let mut r = Reader::new(&mut file, ReaderMode::Tolerant(Some(Kind::File)));

Structs

Reader

A filter that strips ASCII Armor from a stream of data.

Writer

A filter that applies ASCII Armor to the data written to it.

Enums

Kind

Specifies the type of data (see RFC 4880, section 6.2).

ReaderMode

How an ArmorReader should act.