Overview of pem-rfc7468
masterThe pem-rfc7468 crate is a pure Rust implementation of PEM Encoding as defined in [RFC 7468]. It is specifically designed for PKIX, PKCS, and CMS structures, providing a strict subset of the original Privacy-Enhanced Mail (PEM) encoding intended for cryptographic keys, certificates, and other messages.
Key features include:
no_stdsupport: The core implementation isno_std-friendly, requiring no heap allocations and avoiding unnecessary copies or temporary buffers.- Constant-time operations: Uses the
base64ctcrate for constant-time Base64 encoding/decoding, making it suitable for use with cryptographic private keys. - Security-focused parsing: The PEM parser is designed to avoid branching on potentially secret data to mitigate side-channel attacks.
- Strict compliance: Implements the "ABNF (Strict)" subset of the grammar described in RFC 7468, focusing on interoperability by implementing MUSTs and SHOULDs while avoiding MAYs.