Skip to main content

Crate crypto_core

Crate crypto_core 

Source
Expand description

Shared vocabulary types for the ReallyMe crypto workspace.

This crate defines the algorithm identifiers (Algorithm, AeadAlgorithm, HashAlgorithm) and the typed error taxonomy (CryptoError and its failure-kind enums) that every primitive, the dispatch layer, and the FFI boundary share. It contains no cryptographic behavior — only the definitions the rest of the workspace agrees on — so that errors carry fixed, secret-free descriptors and algorithm selection is a single closed enum rather than stringly-typed.

Re-exports§

pub use algorithm::AeadAlgorithm;
pub use algorithm::Algorithm;
pub use algorithm::HashAlgorithm;
pub use algorithm::MacAlgorithm;
pub use error::AeadBackend;
pub use error::AeadFailureKind;
pub use error::ConstantTimeFailureKind;
pub use error::CryptoError;
pub use error::HkdfFailureKind;
pub use error::HkdfHash;
pub use error::KdfAlgorithm;
pub use error::KdfFailureKind;
pub use error::KdfProfile;
pub use error::KemFailureKind;
pub use error::KeyAgreementFailureKind;
pub use error::KeyWrapAlgorithm;
pub use error::KeyWrapFailureKind;
pub use error::KeyWrapOperation;
pub use error::MacFailureKind;
pub use error::MacHash;
pub use error::RngFailureKind;
pub use error::RngOutputKind;
pub use error::SignatureBackend;
pub use error::SignatureFailureKind;
pub use error::SignatureOperation;

Modules§

algorithm
Algorithm identifier enums shared across the workspace.
error
Typed error taxonomy and failure-kind enums.