logo
pub trait KeyInit: KeySizeUser + Sized {
    fn new(key: &Key<Self>) -> Self;

    fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> { ... }
}
Expand description

Types which can be initialized from key.

Required methods

Create new value from fixed size key.

Provided methods

Create new value from variable size key.

Implementors

impl<T> KeyInit for CoreWrapper<T> where
    T: BufferKindUser + KeyInit,
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero