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§
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.
- Secret
Key - A fixed-size secret key that is automatically zeroed when dropped.
- Secret
Vec - 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§
- Algorithm
Category - Canonical algorithm category.
- Algorithm
Id - Canonical algorithm identifier covering all OxiCrypto algorithm families.
- Crypto
Error - Unified error type for all OxiCrypto operations.
Traits§
- Constant
Time Eq - An
Eq-like trait that produces aChoiceinstead of abool. - Zeroize
- Trait for securely erasing values from memory.
- Zeroize
OnDrop - Marker trait signifying that this type will
Zeroize::zeroizeitself onDrop.
Functions§
- ct_eq
- Constant-time byte-slice equality comparison.
- ct_
is_ zero - Constant-time check whether every byte in
datais zero. - ct_
select - Constant-time conditional select: returns
aifchoiceis0, orbifchoiceis1. Any otherchoicevalue is treated as1.
Derive Macros§
- Zeroize
- Derive the
Zeroizetrait. - Zeroize
OnDrop - Derive the
ZeroizeOnDroptrait.