pub enum HashPrimitive {
HMACSHA1,
HMACSHA224,
HMACSHA256,
HMACSHA384,
HMACSHA512,
}Expand description
A wrapper around various common primitives used for PBKDF2. Implements a name and the closure to compute the values. This will later on be a userful abstraction when differentiating between webassembly and multithreaded code.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for HashPrimitive
impl Clone for HashPrimitive
Source§fn clone(&self) -> HashPrimitive
fn clone(&self) -> HashPrimitive
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HashPrimitive
Source§impl Debug for HashPrimitive
impl Debug for HashPrimitive
Source§impl PartialEq for HashPrimitive
impl PartialEq for HashPrimitive
impl StructuralPartialEq for HashPrimitive
Auto Trait Implementations§
impl Freeze for HashPrimitive
impl RefUnwindSafe for HashPrimitive
impl Send for HashPrimitive
impl Sync for HashPrimitive
impl Unpin for HashPrimitive
impl UnsafeUnpin for HashPrimitive
impl UnwindSafe for HashPrimitive
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more