Skip to main content

ssh_encoding/
pem.rs

1//! PEM encoding support.
2
3mod decode;
4mod encode;
5mod reader;
6mod writer;
7
8pub use self::{decode::DecodePem, encode::EncodePem, reader::PemReader};
9pub use pem_rfc7468::{Error, LineEnding, PemLabel};
10
11/// SSH decoder for the body of a PEM document, constructed with [`Self::from_pem`].
12pub type PemDecoder<'i> = crate::Decoder<PemReader<'i>>;
13
14/// Line width used by the PEM encoding of OpenSSH documents.
15const LINE_WIDTH: usize = 70;