[][src]Module sequoia_openpgp::armor

ASCII Armor.

This module deals with ASCII Armored data (see RFC 4880, section 6).

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.

Example

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

let mut file = File::open("somefile.asc").unwrap();
let mut r = Reader::new(&mut file, 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).