Expand description
lib-Q Core - Common types and traits for post-quantum cryptography
This crate provides the foundational types, traits, and error handling used across all lib-Q crates.
§Context factories
Core does not provide factories that depend on algorithm implementation crates (no cycles).
For AeadContext, use AeadContext::new,
AeadContext::with_aead_operations, or
AeadContext::with_provider. The lib-q-aead crate supplies
LibQAeadProvider for AeadContext::with_aead_operations; the umbrella lib-q crate exposes libq::aead::context() wired to that provider.
Re-exports§
pub use aead_semantic::AeadDecryptSemantic;pub use aead_semantic::DecryptSemanticOutcome;pub use contexts::AeadContext;pub use contexts::HashContext;pub use contexts::KemContext;pub use contexts::SignatureContext;pub use error::Error;pub use error::HexDecodeError;pub use error::Result;pub use providers::LibQCryptoProvider;pub use security::SecurityValidator;pub use algorithm_registry::*;pub use api::*;pub use traits::*;pub use wasm::*;
Modules§
- aead_
semantic - Layer B semantic outcomes for AEAD decryption.
- algorithm_
registry - Algorithm registry for lib-Q
- api
- Unified API for lib-Q cryptographic operations
- contexts
- Context management module for lib-Q Core
- error
- Error handling for lib-Q
- providers
- Cryptographic provider implementations for lib-Q
- security
- Security validation and validation utilities for lib-Q
- traits
- Common traits for lib-Q cryptographic operations
- wasm
- WebAssembly bindings for lib-Q Core
- wasm_
common - Common WASM patterns and utilities for lib-Q
Macros§
- wasm_
result - Secure WASM error handling macro
- wasm_
validate - Secure WASM validation macro
Constants§
Functions§
- create_
hash_ context - Create a new hash context with no provider installed.
- create_
kem_ context - Create a new KEM context
- create_
signature_ context - Create a new signature context
- init
- Initialize the core library
- version
- Get library version information