Skip to main content

Crate lib_q_core

Crate lib_q_core 

Source
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§

VERSION

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