#[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 Ord for Sha2Variant
impl Ord for Sha2Variant
Source§fn cmp(&self, other: &Sha2Variant) -> Ordering
fn cmp(&self, other: &Sha2Variant) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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 ==.Source§impl PartialOrd for Sha2Variant
impl PartialOrd for Sha2Variant
impl Copy for Sha2Variant
impl Eq 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