25 lines
1002 B
Rust
25 lines
1002 B
Rust
//! # ccc-crypto-core
|
|
//!
|
|
//! Shared algorithm enumerations, capability structs, provider traits, and the
|
|
//! global [`ProviderRegistry`] for the CCC (Copious Cipher Chain) cryptography
|
|
//! system.
|
|
//!
|
|
//! All algorithm discriminant values match the integer constants defined in
|
|
//! `cipher_constants.dart` exactly, so the Dart cipher-sequencing logic
|
|
//! requires zero changes when calling into Rust.
|
|
|
|
pub mod algorithms;
|
|
pub mod capabilities;
|
|
pub mod error;
|
|
pub mod provider;
|
|
pub mod registry;
|
|
pub mod types;
|
|
|
|
// Re-export everything a provider crate or the bridge crate needs.
|
|
pub use algorithms::{AeadAlgorithm, HashAlgorithm, KdfAlgorithm, KemAlgorithm, MacAlgorithm};
|
|
pub use capabilities::{AlgorithmCapability, ProviderCapabilities};
|
|
pub use error::CryptoError;
|
|
pub use provider::{AeadProvider, CryptoProvider, HashProvider, KdfProvider, KemProvider, MacProvider};
|
|
pub use registry::ProviderRegistry;
|
|
pub use types::{AlgoTestResult, BenchmarkReport, KemEncapResult, KemKeyPair, SelfTestReport};
|