pub struct Config {
pub cipher_suite: CipherSuite,
pub key_derivation: KeyDerivation,
pub rsa_key_size: RsaKeySize,
pub compression: Compression,
pub memory_limit_mb: usize,
pub hardware_acceleration: bool,
pub stream_chunk_size: usize,
pub secure_memory: bool,
}Expand description
Configuration for FluxEncrypt operations
Fields§
§cipher_suite: CipherSuiteCipher suite for symmetric encryption
key_derivation: KeyDerivationKey derivation algorithm and parameters
rsa_key_size: RsaKeySizeRSA key size for asymmetric operations
compression: CompressionCompression algorithm
memory_limit_mb: usizeMemory limit for operations in MB
hardware_acceleration: boolEnable hardware acceleration if available
stream_chunk_size: usizeMaximum chunk size for streaming operations
secure_memory: boolEnable secure memory wiping
Implementations§
Source§impl Config
impl Config
Sourcepub fn builder() -> ConfigBuilder
pub fn builder() -> ConfigBuilder
Create a new ConfigBuilder
Sourcepub fn key_length(&self) -> usize
pub fn key_length(&self) -> usize
Get the key length in bytes for the configured cipher suite
Sourcepub fn nonce_length(&self) -> usize
pub fn nonce_length(&self) -> usize
Get the nonce/IV length in bytes for the configured cipher suite
Sourcepub fn tag_length(&self) -> usize
pub fn tag_length(&self) -> usize
Get the authentication tag length in bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more