pub trait OrderKeyInit: OrderScheme + Sized {
type Key: Controlled;
type KeyError: Error + Send + Sync + 'static;
// Required methods
fn new(key: Self::Key) -> Self;
fn try_from_bytes(key: Protected<Vec<u8>>) -> Result<Self, Self::KeyError>;
}Expand description
A scheme keyed from secret bytes, as
PrfKeyInit keys a PRF, so an index
layer can construct any scheme the same way.
Required Associated Types§
Sourcetype Key: Controlled
type Key: Controlled
The scheme’s full-strength key, a protected array.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".