pub enum Algorithm {
Balloon,
BalloonM,
}Expand description
Balloon primitive type: variants of the algorithm.
Variants§
Balloon
Standard Balloon hashing algorithm.
BalloonM
M-core variant of the Balloon hashing algorithm.
Supports parallelism by computing M instances of the single-core Balloon function and XORing all the outputs.
Implementations§
Source§impl Algorithm
impl Algorithm
Sourcepub const BALLOON_IDENT: Ident<'static>
Available on crate feature password-hash only.
pub const BALLOON_IDENT: Ident<'static>
password-hash only.Balloon algorithm identifier
Sourcepub const BALLOON_M_IDENT: Ident<'static>
Available on crate feature password-hash only.
pub const BALLOON_M_IDENT: Ident<'static>
password-hash only.BalloonM algorithm identifier
Trait Implementations§
Source§impl Ord for Algorithm
impl Ord for Algorithm
Source§impl PartialOrd for Algorithm
impl PartialOrd for Algorithm
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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