Skip to main content

Crate codec_pem

Crate codec_pem 

Source
Expand description

PEM text armor parsing and encoding.

This crate owns only the RFC 7468-style text envelope: BEGIN/END labels, base64 body, line ending normalization, size limits, and strict label matching. It deliberately does not interpret DER or cryptographic key structure.

Structs§

PemDecodePolicy
Policy controlling PEM decoding.
PemDocument
A decoded PEM document.
PemEncodeOptions
Options controlling PEM encoding.

Enums§

PemError
Error returned when PEM text armor cannot be parsed or encoded.
PemLabel
Supported PEM labels.
PemLineEnding
Line ending emitted by PEM encoding.

Functions§

decode_pem
Decode PEM text armor into a label and DER body.
encode_pem
Encode DER bytes as PEM text armor.