pub trait CaseP1 {
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 methods
fn algorithm_self_test() { ... }
fn pipeline_api_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 OutputLen: ArrayLength + NonZero
type OutputLen: ArrayLength + NonZero
The length of the output
Sourcetype CF: ValidCostFactor
type CF: ValidCostFactor
The cost factor
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
Sourcefn pipeline_api_test()
fn pipeline_api_test()
Test the pipeline API
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.