pub enum Sha3Mode {
Sha3_224,
Sha3_256,
Sha3_384,
Sha3_512,
Shake128,
Shake256,
Keccak224,
Keccak256,
Keccak384,
Keccak512,
}
Expand description
SHA-3 Modes.
Variants
Sha3_224
Sha3_256
Sha3_384
Sha3_512
Shake128
Shake256
Keccak224
Keccak256
Keccak384
Keccak512
Implementations
sourceimpl Sha3Mode
impl Sha3Mode
sourcepub fn digest_length(&self) -> usize
pub fn digest_length(&self) -> usize
Return the expected hash size in bytes specified for mode
, or 0
for modes with variable output as for shake functions.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sha3Mode
impl Send for Sha3Mode
impl Sync for Sha3Mode
impl Unpin for Sha3Mode
impl UnwindSafe for Sha3Mode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more