#[repr(u8)]pub enum RsaVariant {
Sha256 = 0,
Sha384 = 1,
Sha512 = 2,
}Expand description
The mint-bound digests RSA signature verification serves: RSA’s
parameterization is the digest alone — the modulus length is a
property of the imported material, reported by
verifying-key.algorithm-length. (Each algorithm interface
names its closed set of parameterizations <algorithm>-variant;
the two RSA signature interfaces share this one.)
SHA-1 is deliberately absent, though platforms serve it:
collision resistance is load-bearing for signature verification,
and SHA-1’s is broken (see README.md, “Design notes”).
Variants§
Trait Implementations§
Source§impl Clone for RsaVariant
impl Clone for RsaVariant
Source§fn clone(&self) -> RsaVariant
fn clone(&self) -> RsaVariant
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 moreSource§impl Debug for RsaVariant
impl Debug for RsaVariant
Source§impl Ord for RsaVariant
impl Ord for RsaVariant
Source§fn cmp(&self, other: &RsaVariant) -> Ordering
fn cmp(&self, other: &RsaVariant) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RsaVariant
impl PartialEq for RsaVariant
Source§fn eq(&self, other: &RsaVariant) -> bool
fn eq(&self, other: &RsaVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RsaVariant
impl PartialOrd for RsaVariant
impl Copy for RsaVariant
impl Eq for RsaVariant
impl StructuralPartialEq for RsaVariant
Auto Trait Implementations§
impl Freeze for RsaVariant
impl RefUnwindSafe for RsaVariant
impl Send for RsaVariant
impl Sync for RsaVariant
impl Unpin for RsaVariant
impl UnsafeUnpin for RsaVariant
impl UnwindSafe for RsaVariant
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