logo
pub fn encode_string(
    label: &str,
    line_ending: LineEnding,
    input: &[u8]
) -> Result<String>
Available on crate feature alloc only.
Expand description

Encode a PEM document according to RFC 7468’s “Strict” grammar, returning the result as a String.