ssh-encoding 0.4.0

Pure Rust implementation of SSH data type decoders/encoders as described in RFC4251
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! PEM encoding support.

mod decode;
mod encode;
mod reader;
mod writer;

pub use self::{decode::DecodePem, encode::EncodePem, reader::PemReader};
pub use pem_rfc7468::{Error, LineEnding, PemLabel};

/// SSH decoder for the body of a PEM document, constructed with [`Self::from_pem`].
pub type PemDecoder<'i> = crate::Decoder<PemReader<'i>>;

/// Line width used by the PEM encoding of OpenSSH documents.
const LINE_WIDTH: usize = 70;