Enum openpgp_card::crypto_data::Hash
source · [−]#[non_exhaustive]
pub enum Hash<'a> {
SHA256([u8; 32]),
SHA384([u8; 48]),
SHA512([u8; 64]),
ECDSA(&'a [u8]),
EdDSA(&'a [u8]),
}
Expand description
A hash value that can be signed by the card.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SHA256([u8; 32])
SHA384([u8; 48])
SHA512([u8; 64])
ECDSA(&'a [u8])
EdDSA(&'a [u8])
Auto Trait Implementations
impl<'a> RefUnwindSafe for Hash<'a>
impl<'a> Send for Hash<'a>
impl<'a> Sync for Hash<'a>
impl<'a> Unpin for Hash<'a>
impl<'a> UnwindSafe for Hash<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more