Enum tss2_fapi_rs::HashAlgorithm
pub enum HashAlgorithm {
Sha1,
Sha2_256,
Sha2_384,
Sha2_512,
Sha3_256,
Sha3_384,
Sha3_512,
SM3_256,
UnknownAlgorithm,
}
Expand description
Identifies the hash algorithm to be used, e.g. for signature creation.
Variants§
Sha1
Secure Hash Algorithm 1
Sha2_256
Secure Hash Algorithm 2 with 256-Bit output (SHA-256)
Sha2_384
Secure Hash Algorithm 2 with 384-Bit output (SHA-384)
Sha2_512
Secure Hash Algorithm 2 with 512-Bit output (SHA-512)
Sha3_256
Secure Hash Algorithm 3 with 256-Bit output (SHA3-256)
Sha3_384
Secure Hash Algorithm 3 with 384-Bit output (SHA3-384)
Sha3_512
Secure Hash Algorithm 3 with 512-Bit output (SHA3-512)
SM3_256
ShangMi 3 hash function with 256-Bit output
UnknownAlgorithm
Unknown hash algorithm
Trait Implementations§
§impl Debug for HashAlgorithm
impl Debug for HashAlgorithm
§impl Hash for HashAlgorithm
impl Hash for HashAlgorithm
§impl PartialEq for HashAlgorithm
impl PartialEq for HashAlgorithm
impl Eq 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 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