pub enum PreHashAlgorithm {
Sha256,
Sha512,
}Expand description
Pre-hash algorithm selector for HashFN-DSA (FIPS 206 §6.2).
The message is hashed with the chosen algorithm before signing. The algorithm OID is injected into the hash context so that sign and verify must use matching algorithms.
Variants§
Sha256
SHA-256 (32-byte digest, OID 2.16.840.1.101.3.4.2.1)
Sha512
SHA-512 (64-byte digest, OID 2.16.840.1.101.3.4.2.3)
Trait Implementations§
Source§impl Clone for PreHashAlgorithm
impl Clone for PreHashAlgorithm
Source§fn clone(&self) -> PreHashAlgorithm
fn clone(&self) -> PreHashAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · 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 PreHashAlgorithm
impl Debug for PreHashAlgorithm
Source§impl PartialEq for PreHashAlgorithm
impl PartialEq for PreHashAlgorithm
impl Copy for PreHashAlgorithm
impl Eq for PreHashAlgorithm
impl StructuralPartialEq for PreHashAlgorithm
Auto Trait Implementations§
impl Freeze for PreHashAlgorithm
impl RefUnwindSafe for PreHashAlgorithm
impl Send for PreHashAlgorithm
impl Sync for PreHashAlgorithm
impl Unpin for PreHashAlgorithm
impl UnsafeUnpin for PreHashAlgorithm
impl UnwindSafe for PreHashAlgorithm
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