Skip to main content

Crate base64_ng_pem

Crate base64_ng_pem 

Source
Expand description

Optional simd and checked-backend features forward to the core’s ordinary kernels without changing defaults or grammar. checked-backend implies simd; neither enables std, alloc or secrets on its own. Eligible sizes and CPU/build capabilities still govern acceleration. Secret/CT paths remain separate. Without core std, complete static ISA features are required. Bounded RFC 7468 textual encoding parsing and generation.

This crate owns complete encapsulation boundaries, labels, Base64 bodies, adjacent text, multiple-block documents, and line-ending policy. It does not parse the ASN.1 payload and deliberately rejects legacy OpenSSL encapsulated headers.

Structs§

PemBlock
One decoded RFC 7468 textual encoding instance.
PemBlockEncoder
Incremental bounded payload collector for one PEM block.
PemDocument
A bounded document containing one or more textual encoding instances.
PemDocumentParser
Incremental bounded document collector.
PemError
RFC 7468 error with an optional public source position.
PemGenerationOptions
Canonical generator options.
PemLabel
A syntactically valid RFC 7468 label.
PemLimits
Finite resource limits for one RFC 7468 operation.
PemParseReport
Bounded parser deviation report.
SecretPemBlock
One expected-label PEM payload in clear-on-drop secret storage.

Enums§

PemErrorKind
Classified RFC 7468 operation failure.
PemLabelError
Label validation failure.
PemLineEnding
Generated document line ending.
PemParsePolicy
One accepted input policy.

Functions§

encode_pem_block_into
Generates one canonical RFC 7468 block transactionally.
encode_pem_block_to_string
Generates one canonical RFC 7468 block as an owned string.
parse_pem_document
Parses all RFC 7468 textual encoding instances from one bounded document.
parse_pem_secret_block
Parses exactly one expected-label block into clear-on-drop secret storage.
pem_block_encoded_len
Returns the exact generated length for one RFC 7468 block.