Struct tor_llcrypto::pk::rsa::ValidatableRsaSignature
source · pub struct ValidatableRsaSignature { /* private fields */ }
Expand description
An RSA signature plus all the information needed to validate it.
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§
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> 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