pub enum CryptoStrength {
Weak {
witness: DescriptionBound,
ratio: f64,
},
IncompressibleInClass {
ratio: f64,
},
}Expand description
The algorithmic-information verdict on key or ciphertext material (a byte string).
Variants§
Weak
A description shorter than the raw bytes exists — a certified structural weakness. witness
decodes back to the data (the concrete attack), and ratio = K̄/n < 1 quantifies predictability.
IncompressibleInClass
No description beats storing the raw bytes — incompressible relative to the engine’s generator
class. A necessary (not sufficient) condition for cryptographic randomness; no weakness of this
class. (ratio ≥ 1.)
Trait Implementations§
Source§impl Clone for CryptoStrength
impl Clone for CryptoStrength
Source§fn clone(&self) -> CryptoStrength
fn clone(&self) -> CryptoStrength
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 moreAuto Trait Implementations§
impl Freeze for CryptoStrength
impl RefUnwindSafe for CryptoStrength
impl Send for CryptoStrength
impl Sync for CryptoStrength
impl Unpin for CryptoStrength
impl UnsafeUnpin for CryptoStrength
impl UnwindSafe for CryptoStrength
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