pub struct FastPortable { /* private fields */ }
Expand description

A general-purpose base64 engine.

  • It uses no vector CPU instructions, so it will work on any system.
  • It is reasonably fast (~2GiB/s).
  • It is not constant-time, though, so it is vulnerable to timing side-channel attacks. For loading cryptographic keys, etc, it is suggested to use the forthcoming constant-time implementation.

Implementations§

Create a FastPortable engine from an Alphabet.

While not very expensive to initialize, ideally these should be cached if the engine will be used repeatedly.

Trait Implementations§

The config type used by this engine
The decode estimate used by this engine
Encode the input bytes into the output buffer based on the mapping in encode_table. Read more
As an optimization to prevent the decoded length from being calculated twice, it is sometimes helpful to have a conservative estimate of the decoded size before doing the decoding, so this calculation is done separately and passed to Engine::decode() as needed. Read more
Decode input base64 bytes into the output buffer. Read more
Returns the config for this engine.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.