pub enum HashingAlgorithm {
Sha1,
Sha256,
Sha384,
Sha512,
Sm3_256,
Sha3_256,
Sha3_384,
Sha3_512,
Null,
}Expand description
Enum containing the supported hash algorithms
§Details
This corresponds to TPMI_ALG_HASH interface type.
Variants§
Trait Implementations§
Source§impl Clone for HashingAlgorithm
impl Clone for HashingAlgorithm
Source§fn clone(&self) -> HashingAlgorithm
fn clone(&self) -> HashingAlgorithm
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 moreimpl Copy for HashingAlgorithm
Source§impl Debug for HashingAlgorithm
impl Debug for HashingAlgorithm
impl Eq for HashingAlgorithm
Source§impl Hash for HashingAlgorithm
impl Hash for HashingAlgorithm
Source§impl PartialEq for HashingAlgorithm
impl PartialEq for HashingAlgorithm
Source§fn eq(&self, other: &HashingAlgorithm) -> bool
fn eq(&self, other: &HashingAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HashingAlgorithm
Auto Trait Implementations§
impl Freeze for HashingAlgorithm
impl RefUnwindSafe for HashingAlgorithm
impl Send for HashingAlgorithm
impl Sync for HashingAlgorithm
impl Unpin for HashingAlgorithm
impl UnsafeUnpin for HashingAlgorithm
impl UnwindSafe for HashingAlgorithm
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