Module encoder

Module encoder 

Source
Expand description

PEM encoder.

Structs§

Encoder
Buffered PEM encoder.

Functions§

base64_len_wrapped 🔒
Compute Base64 length line-wrapped at the specified width with the given line ending.
encapsulated_len
Compute the length of a PEM encoded document which encapsulates a Base64-encoded body including line endings every 64 characters.
encapsulated_len_inner 🔒
Compute the encapsulated length of Base64 data of the given length.
encapsulated_len_wrapped
Compute the length of a PEM encoded document with the Base64 body line wrapped at the specified width.
encode
Encode a PEM document according to RFC 7468’s “Strict” grammar.
encode_string
Encode a PEM document according to RFC 7468’s “Strict” grammar, returning the result as a String.
encoded_len
Get the length of a PEM encoded document with the given bytes and label.