pub struct CryptLimits {
pub outer_cfb_bytes: u64,
pub named_stream_count: u64,
pub named_stream_declared_bytes: u64,
pub named_stream_read_bytes: u64,
pub encrypted_package_bytes: u64,
pub kdf_iterations: u64,
pub kdf_work: u64,
}Expand description
Finite limits for one encrypted-container operation.
Defaults admit 128 MiB CFB/package inputs, 256 named streams, 512 MiB of declared stream data, 128 MiB of required stream reads, one million KDF iterations per pass, and three million aggregate KDF iterations.
Fields§
§outer_cfb_bytes: u64Maximum bytes in the outer CFB input.
named_stream_count: u64Maximum number of named streams in the CFB directory.
named_stream_declared_bytes: u64Maximum aggregate declared bytes across named CFB streams.
named_stream_read_bytes: u64Maximum aggregate bytes read from required named CFB streams.
encrypted_package_bytes: u64Maximum declared and actual bytes in /EncryptedPackage.
kdf_iterations: u64Maximum Agile KDF iterations in one password-derived pass.
kdf_work: u64Maximum aggregate password-derived hash iterations.
Implementations§
Source§impl CryptLimits
impl CryptLimits
Sourcepub const fn hard_ceiling() -> Self
pub const fn hard_ceiling() -> Self
Largest supported finite values. These ceilings cannot be disabled.
The ceilings are 2 GiB outer/read/package bytes, 65,536 streams, 4 GiB declared bytes, ten million iterations per pass, and thirty million aggregate KDF iterations.
Trait Implementations§
Source§impl Clone for CryptLimits
impl Clone for CryptLimits
Source§fn clone(&self) -> CryptLimits
fn clone(&self) -> CryptLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CryptLimits
Source§impl Debug for CryptLimits
impl Debug for CryptLimits
Source§impl Default for CryptLimits
impl Default for CryptLimits
impl Eq for CryptLimits
Source§impl PartialEq for CryptLimits
impl PartialEq for CryptLimits
impl StructuralPartialEq for CryptLimits
Auto Trait Implementations§
impl Freeze for CryptLimits
impl RefUnwindSafe for CryptLimits
impl Send for CryptLimits
impl Sync for CryptLimits
impl Unpin for CryptLimits
impl UnsafeUnpin for CryptLimits
impl UnwindSafe for CryptLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.