Skip to main content

Module pem

Module pem 

Available on crate features crypto and std only.
Expand description

PEM encoding of DER objects (RFC 7468), the writing counterpart of the PemObject readers.

PemEncode::pem gives a PemBlock view of a DER object; the view writes itself into a String, a Vec<u8>, any fmt::Write or, through fmt::Display, any io::Write, without an intermediate allocation.

Structs§

PemBlock
One PEM block: a label and the DER bytes it wraps, encoded on demand.

Traits§

PemEncode
DER objects that carry the PEM label RFC 7468 assigns them.

Functions§

encode
One PEM block labelled label around der, as a new String.