Skip to main content

Crate oxicrypto_core

Crate oxicrypto_core 

Source
Expand description

oxicrypto-core – pure-Rust trait surface, error types, and secure wrappers for the OxiCrypto stack.

This crate is no_std + alloc. It defines the trait objects, error enum, constant-time utilities, and secret-key wrappers shared by every other oxicrypto-* sub-crate. No crypto implementation lives here.

Re-exports§

pub use traits::Aead;
pub use traits::Hash;
pub use traits::Kdf;
pub use traits::Kem;
pub use traits::KeyAgreement;
pub use traits::KeyGenerator;
pub use traits::Mac;
pub use traits::PasswordHash;
pub use traits::PasswordHashParams;
pub use traits::Rng;
pub use traits::Signer;
pub use traits::StreamingAead;
pub use traits::StreamingHash;
pub use traits::StreamingMac;
pub use traits::Verifier;

Modules§

traits

Structs§

Box
A pointer type that uniquely owns a heap allocation of type T.
KeyPair
A generic key pair bundling a secret key and its corresponding public key.
SecretKey
A fixed-size secret key that is automatically zeroed when dropped.
SecretVec
A heap-allocated, variable-length secret that is automatically zeroed when dropped.
String
A UTF-8–encoded, growable string.
Vec
A contiguous growable array type, written as Vec<T>, short for ‘vector’.

Enums§

AlgorithmCategory
Canonical algorithm category.
AlgorithmId
Canonical algorithm identifier covering all OxiCrypto algorithm families.
CryptoError
Unified error type for all OxiCrypto operations.

Traits§

ConstantTimeEq
An Eq-like trait that produces a Choice instead of a bool.
Zeroize
Trait for securely erasing values from memory.
ZeroizeOnDrop
Marker trait signifying that this type will Zeroize::zeroize itself on Drop.

Functions§

ct_eq
Constant-time byte-slice equality comparison.
ct_is_zero
Constant-time check whether every byte in data is zero.
ct_select
Constant-time conditional select: returns a if choice is 0, or b if choice is 1. Any other choice value is treated as 1.

Derive Macros§

Zeroize
Derive the Zeroize trait.
ZeroizeOnDrop
Derive the ZeroizeOnDrop trait.