pub trait Case {
type P: ArrayLength + NonZero + IsGreaterOrEqual<U2, Output = B1>;
type OutputLen: ArrayLength + NonZero;
type CF: ValidCostFactor;
type R: ArrayLength + NonZero;
const PASSWORD: &'static [u8];
const SALT: &'static [u8];
const KNOWN_ANSWER: GenericArray<u8, Self::OutputLen>;
// Provided method
fn algorithm_self_test() { ... }
}
Expand description
Test case for P > 1
Required Associated Constants§
Sourceconst KNOWN_ANSWER: GenericArray<u8, Self::OutputLen>
const KNOWN_ANSWER: GenericArray<u8, Self::OutputLen>
The known answer
Required Associated Types§
Sourcetype P: ArrayLength + NonZero + IsGreaterOrEqual<U2, Output = B1>
type P: ArrayLength + NonZero + IsGreaterOrEqual<U2, Output = B1>
The parallel width
Sourcetype OutputLen: ArrayLength + NonZero
type OutputLen: ArrayLength + NonZero
The length of the output
Sourcetype CF: ValidCostFactor
type CF: ValidCostFactor
The number of blocks
Sourcetype R: ArrayLength + NonZero
type R: ArrayLength + NonZero
The number of rounds
Provided Methods§
Sourcefn algorithm_self_test()
fn algorithm_self_test()
Test the algorithm implementation
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.