#[repr(u8)]pub enum Sha2Variant {
Sha224 = 0,
Sha256 = 1,
Sha384 = 2,
Sha512 = 3,
Sha512224 = 4,
Sha512256 = 5,
}Expand description
The SHA-2 variants: FIPS 180-4 closes this set, so it is an enum.
(Each algorithm interface names its closed set of parameterizations
<algorithm>-variant.)
Variants§
Sha224 = 0
Not widely supported: WebCrypto serves only SHA-256/384/512, and
no current implementation of this package serves the truncated
variants — expect error.unsupported unless composed with a
provider that specifically offers them.
Sha256 = 1
Sha384 = 2
Sha512 = 3
Sha512224 = 4
Not widely supported (see sha224).
Sha512256 = 5
Not widely supported (see sha224).
Trait Implementations§
Source§impl Clone for Sha2Variant
impl Clone for Sha2Variant
Source§fn clone(&self) -> Sha2Variant
fn clone(&self) -> Sha2Variant
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 Sha2Variant
impl Debug for Sha2Variant
Source§impl From<Sha2Variant> for Sha2Variant
impl From<Sha2Variant> for Sha2Variant
Source§fn from(variant: Sha2Variant) -> Self
fn from(variant: Sha2Variant) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Sha2Variant
impl PartialEq for Sha2Variant
Source§fn eq(&self, other: &Sha2Variant) -> bool
fn eq(&self, other: &Sha2Variant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl ComponentType for Sha2Variant
impl Copy for Sha2Variant
impl Eq for Sha2Variant
impl Lift for Sha2Variant
impl Lower for Sha2Variant
impl StructuralPartialEq for Sha2Variant
Auto Trait Implementations§
impl Freeze for Sha2Variant
impl RefUnwindSafe for Sha2Variant
impl Send for Sha2Variant
impl Sync for Sha2Variant
impl Unpin for Sha2Variant
impl UnsafeUnpin for Sha2Variant
impl UnwindSafe for Sha2Variant
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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