#[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 From<RsaVariant> for RsaVariant
impl From<RsaVariant> for RsaVariant
Source§fn from(variant: RsaVariant) -> Self
fn from(variant: RsaVariant) -> Self
Converts to this type from the input type.
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 ==.impl ComponentType for RsaVariant
impl Copy for RsaVariant
impl Eq for RsaVariant
impl Lift for RsaVariant
impl Lower 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more