Skip to main content

Crate base64_ng_multibase

Crate base64_ng_multibase 

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 support for the registered Base64-family multibase encodings.

This crate implements only base64 (m), base64pad (M), base64url (u), and base64urlpad (U) from the pinned multibase registry. It is not a complete multibase implementation and rejects every other prefix. All decoding is strict and canonical for the prefix-selected RFC 4648 alphabet and padding policy.

Structs§

Base64MultibaseDecoder
Heapless bounded incremental Base64-family multibase decoder.
Base64MultibaseEncoder
Heapless bounded incremental Base64-family multibase encoder.
Base64MultibaseError
Base64-family multibase failure with bounded ordinary diagnostics.
Base64MultibaseLimits
Finite resource limits for one Base64-family multibase value.
Base64MultibaseStep
Exact incremental progress for one call.
DecodedBase64Multibase
Successful caller-owned decode result.
DecodedBase64MultibaseVec
Successful allocated decode result.

Enums§

Base64MultibaseEncoding
One admitted Base64-family multibase registration.
Base64MultibaseErrorKind
Stable Base64-family multibase failure class.
Base64MultibaseStatus
Non-failing incremental state after one operation.
MultibaseRegistryStatus
Status recorded by the pinned multibase registry.

Functions§

base64_multibase_encoded_len
Returns the exact prefixed encoded length.
decode_base64_multibase_into
Decodes one complete Base64-family multibase value transactionally.
decode_base64_multibase_to_vec
Decodes one Base64-family multibase value into a newly allocated vector.
encode_base64_multibase_into
Encodes one complete Base64-family multibase value transactionally.
encode_base64_multibase_to_string
Encodes one Base64-family multibase value into a newly allocated string.
validate_base64_multibase
Validates one complete Base64-family multibase value without decoding.