pub struct Identity;
Expand description
A no-op hash which simply returns its input
Trait Implementations
sourceimpl Ksf for Identity
impl Ksf for Identity
sourcefn hash<L: ArrayLength<u8>>(
&self,
input: GenericArray<u8, L>
) -> Result<GenericArray<u8, L>, InternalError>
fn hash<L: ArrayLength<u8>>(
&self,
input: GenericArray<u8, L>
) -> Result<GenericArray<u8, L>, InternalError>
Computes the key stretching function
Auto Trait Implementations
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more