pub struct Signature {
pub(super) inner: BoxedUint,
}Expand description
RSASSA-PKCS1-v1_5 signatures as described in RFC8017 § 8.2.
Fields§
§inner: BoxedUintTrait Implementations§
Source§impl<D> DigestSigner<D, Signature> for SigningKey<D>
impl<D> DigestSigner<D, Signature> for SigningKey<D>
Source§impl<D> DigestVerifier<D, Signature> for VerifyingKey<D>
impl<D> DigestVerifier<D, Signature> for VerifyingKey<D>
Source§impl<D> MultipartSigner<Signature> for SigningKey<D>where
D: Digest,
impl<D> MultipartSigner<Signature> for SigningKey<D>where
D: Digest,
Source§fn try_multipart_sign(&self, msg: &[&[u8]]) -> Result<Signature>
fn try_multipart_sign(&self, msg: &[&[u8]]) -> Result<Signature>
Equivalent of
Signer::try_sign() but the message is provided in non-contiguous byte
slices. Read moreSource§fn multipart_sign(&self, msg: &[&[u8]]) -> S
fn multipart_sign(&self, msg: &[&[u8]]) -> S
Equivalent of
Signer::sign() but the message is provided in non-contiguous byte slices.Source§impl<D> PrehashSigner<Signature> for SigningKey<D>where
D: Digest,
impl<D> PrehashSigner<Signature> for SigningKey<D>where
D: Digest,
Source§impl<D> PrehashVerifier<Signature> for VerifyingKey<D>where
D: Digest,
impl<D> PrehashVerifier<Signature> for VerifyingKey<D>where
D: Digest,
Source§impl<D> RandomizedDigestSigner<D, Signature> for SigningKey<D>
impl<D> RandomizedDigestSigner<D, Signature> for SigningKey<D>
Source§impl<D> RandomizedMultipartSigner<Signature> for SigningKey<D>where
D: Digest,
impl<D> RandomizedMultipartSigner<Signature> for SigningKey<D>where
D: Digest,
Source§fn try_multipart_sign_with_rng<R: TryCryptoRng + ?Sized>(
&self,
rng: &mut R,
msg: &[&[u8]],
) -> Result<Signature>
fn try_multipart_sign_with_rng<R: TryCryptoRng + ?Sized>( &self, rng: &mut R, msg: &[&[u8]], ) -> Result<Signature>
Equivalent of
RandomizedSigner::try_sign_with_rng() but the message is provided in
non-contiguous byte slices. Read moreSource§fn multipart_sign_with_rng<R>(&self, rng: &mut R, msg: &[&[u8]]) -> S
fn multipart_sign_with_rng<R>(&self, rng: &mut R, msg: &[&[u8]]) -> S
Equivalent of
RandomizedSigner::sign_with_rng() but the message is provided in
non-contiguous byte slices.Source§impl<D> RandomizedSigner<Signature> for SigningKey<D>where
D: Digest,
impl<D> RandomizedSigner<Signature> for SigningKey<D>where
D: Digest,
Source§fn try_sign_with_rng<R: TryCryptoRng + ?Sized>(
&self,
rng: &mut R,
msg: &[u8],
) -> Result<Signature>
fn try_sign_with_rng<R: TryCryptoRng + ?Sized>( &self, rng: &mut R, msg: &[u8], ) -> Result<Signature>
Attempt to sign the given message, returning a digital signature on success, or an error if
something went wrong. Read more
Source§impl SignatureBitStringEncoding for Signature
Available on crate feature encoding only.
impl SignatureBitStringEncoding for Signature
Available on crate feature
encoding only.Source§impl SignatureEncoding for Signature
impl SignatureEncoding for Signature
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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