pub struct CryptoConfig {
pub enable_pq_signatures: bool,
pub hash_version: HashVersion,
pub fips_mode: bool,
pub enable_self_tests: bool,
}Expand description
Cryptographic configuration for FIPS 140-3 compliance
Fields§
§enable_pq_signatures: boolEnable post-quantum signatures (ML-DSA/Dilithium)
hash_version: HashVersionHash algorithm version
fips_mode: boolFIPS 140-3 mode (uses only approved algorithms)
enable_self_tests: boolEnable power-on self-tests
Implementations§
Source§impl CryptoConfig
impl CryptoConfig
Sourcepub fn fips_strict() -> Self
pub fn fips_strict() -> Self
Create FIPS 140-3 strict mode configuration
Trait Implementations§
Source§impl Clone for CryptoConfig
impl Clone for CryptoConfig
Source§fn clone(&self) -> CryptoConfig
fn clone(&self) -> CryptoConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CryptoConfig
impl Debug for CryptoConfig
Source§impl Default for CryptoConfig
impl Default for CryptoConfig
Source§impl<'de> Deserialize<'de> for CryptoConfig
impl<'de> Deserialize<'de> for CryptoConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CryptoConfig
impl RefUnwindSafe for CryptoConfig
impl Send for CryptoConfig
impl Sync for CryptoConfig
impl Unpin for CryptoConfig
impl UnsafeUnpin for CryptoConfig
impl UnwindSafe for CryptoConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more