pub enum HashAlgorithm {
Show 28 variants
Sha3_224,
Sha3_256,
Sha3_384,
Sha3_512,
Shake128,
Shake256,
Cshake128,
Cshake256,
Kt128,
Kt256,
Keccak224,
Keccak256,
Keccak384,
Keccak512,
TurboShake128,
TurboShake256,
Kmac128,
Kmac256,
TupleHash128,
TupleHash256,
ParallelHash128,
ParallelHash256,
Sha224,
Sha256,
Sha384,
Sha512,
Sha512_224,
Sha512_256,
}Expand description
Hash algorithm types that map to lib-q-core Algorithm enum
Variants§
Sha3_224
SHA-3-224
Sha3_256
SHA-3-256
Sha3_384
SHA-3-384
Sha3_512
SHA-3-512
Shake128
SHAKE128
Shake256
SHAKE256
Cshake128
cSHAKE128
Cshake256
cSHAKE256
Kt128
KT128 (KangarooTwelve with TurboSHAKE128)
Kt256
KT256 (KangarooTwelve with TurboSHAKE256)
Keccak224
Keccak-224
Keccak256
Keccak-256
Keccak384
Keccak-384
Keccak512
Keccak-512
TurboShake128
TurboShake128
TurboShake256
TurboShake256
Kmac128
KMAC128
Kmac256
KMAC256
TupleHash128
TupleHash128
TupleHash256
TupleHash256
ParallelHash128
ParallelHash128
ParallelHash256
ParallelHash256
Sha224
SHA-224
Sha256
SHA-256
Sha384
SHA-384
Sha512
SHA-512
Sha512_224
SHA-512/224
Sha512_256
SHA-512/256
Implementations§
Source§impl HashAlgorithm
impl HashAlgorithm
Sourcepub fn output_size(&self) -> usize
pub fn output_size(&self) -> usize
Get the output size for this algorithm
Trait Implementations§
Source§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
Source§fn clone(&self) -> HashAlgorithm
fn clone(&self) -> HashAlgorithm
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 moreSource§impl Debug for HashAlgorithm
impl Debug for HashAlgorithm
impl Eq for HashAlgorithm
Source§impl PartialEq for HashAlgorithm
impl PartialEq for HashAlgorithm
impl StructuralPartialEq for HashAlgorithm
Auto Trait Implementations§
impl Freeze for HashAlgorithm
impl RefUnwindSafe for HashAlgorithm
impl Send for HashAlgorithm
impl Sync for HashAlgorithm
impl Unpin for HashAlgorithm
impl UnsafeUnpin for HashAlgorithm
impl UnwindSafe for HashAlgorithm
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