pub struct ValidatableRsaSignature {
key: PublicKey,
sig: Vec<u8>,
expected_hash: Vec<u8>,
}
Expand description
An RSA signature plus all the information needed to validate it.
Fields§
§key: PublicKey
The key that allegedly signed this signature
sig: Vec<u8>
The signature in question
expected_hash: Vec<u8>
The value we expect to find that the signature is a signature of.
Implementations§
Trait Implementations§
Source§impl ValidatableSignature for ValidatableRsaSignature
impl ValidatableSignature for ValidatableRsaSignature
Source§fn is_valid(&self) -> bool
fn is_valid(&self) -> bool
Check whether this signature is a correct signature for the document.
Source§fn as_ed25519(&self) -> Option<&ValidatableEd25519Signature>
fn as_ed25519(&self) -> Option<&ValidatableEd25519Signature>
Return this value as a validatable Ed25519 signature, if it is one.
Auto Trait Implementations§
impl Freeze for ValidatableRsaSignature
impl RefUnwindSafe for ValidatableRsaSignature
impl Send for ValidatableRsaSignature
impl Sync for ValidatableRsaSignature
impl Unpin for ValidatableRsaSignature
impl UnwindSafe for ValidatableRsaSignature
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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