Skip to main content

Crate orion

Crate orion 

Source
Expand description

A usable pure-Rust cryptography library.

§Authenticated secret-key encryption

orion::aead offers authenticated secret-key encryption using XChaCha20Poly1305.

§Password hashing and verification

orion::pwhash offers password hashing and verification using Argon2id.

§Key derivation

orion::kdf offers key derivation using Argon2id.

§Message authentication

orion::auth offers message authentication and verification using BLAKE2b.

§Digital signatures

orion::signer offers digital signature creation and verification using ML-DSA-65.

§Hashing

orion::hash offers hashing using BLAKE2b.

§Key Encapsulation Mechanism

orion::kem offers KEM using X-Wing.

§Hybrid Public Key Encryption

orion::hpke offers HPKE with the PQ/T XWING_SHAKE256_CHACHA20POLY1305.

§A note on no_std:

When Orion is used in a no_std context, the high-level API is not available, since it relies on access to the systems random number generator.

More information about Orion is available in the wiki.

Re-exports§

pub use crate::generics::GeneratePublic;
pub use crate::generics::GenerateSecret;
pub use crate::generics::KP;
pub use crate::generics::Public;
pub use crate::generics::Secret;

Modules§

aeadsafe_api
Authenticated secret-key encryption (XChaCha20-Poly1305).
authsafe_api
Message authentication.
errors
Errors for Orion’s cryptographic operations.
generics
Generic types used throughout the library.
hashsafe_api
Hashing.
hazardous
[Caution] Low-level API.
hpkesafe_api
Hybrid Public Key Encryption.
kdfsafe_api
Key derivation.
kemsafe_api
Key Encapsulation Mechanism.
pwhashsafe_api
Password hashing and verification.
signersafe_api
Digital signature creation and verification.
util
Utilities such as constant-time comparison.