[][src]Crate bundled_crypto

A crate gathering various algorithms from different crypto libraries and attempting to unify their apis. Built to manage key rotations. Implements the PASETO token standard for standard web cookie/token-based authorization. Repackages some encoding libraries as well.

Mainly serves as a higher level crate reshipping other crates under an relatively cohesive, easy to use api.

Re-exports

pub use key_rotation::Generational;
pub use key_rotation::KeyRotator;
pub use key_rotation::RotatingKeyFixture;

Modules

algo

Base module for various cryptographic algorithms.

encoding
key_rotation

Structs and methods used for storing keys and auto-cycling keys based on a periodic functions.

token

Tokens used for web authentication and authorization, and general transmission of data in a secure fashion.

Structs

RotatingKeyStore

A Send/Sync key store that keeps the last two keys.

StableKeyStore

Maintains an algorithm and its key.

Traits

BoolToResult

This trait defines a number of combinator-style methods for use with bool values.

Functions

multithread_init

Always call this if you need the sodiumoxide-implemented things to work multithreaded.