pub struct Signature {
pub(super) inner: BoxedUint,
}Expand description
RSASSA-PSS signatures as described in RFC8017 § 8.1.
Fields§
§inner: BoxedUintTrait Implementations§
Source§impl<D> DigestVerifier<D, Signature> for VerifyingKey<D>
impl<D> DigestVerifier<D, Signature> for VerifyingKey<D>
Source§impl<D> PrehashVerifier<Signature> for VerifyingKey<D>where
D: Digest + FixedOutputReset,
impl<D> PrehashVerifier<Signature> for VerifyingKey<D>where
D: Digest + FixedOutputReset,
Source§impl<D> RandomizedDigestSigner<D, Signature> for BlindedSigningKey<D>
impl<D> RandomizedDigestSigner<D, Signature> for BlindedSigningKey<D>
Source§impl<D> RandomizedDigestSigner<D, Signature> for SigningKey<D>
impl<D> RandomizedDigestSigner<D, Signature> for SigningKey<D>
Source§impl<D> RandomizedMultipartSigner<Signature> for BlindedSigningKey<D>where
D: Digest + FixedOutputReset,
impl<D> RandomizedMultipartSigner<Signature> for BlindedSigningKey<D>where
D: Digest + FixedOutputReset,
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> RandomizedMultipartSigner<Signature> for SigningKey<D>
impl<D> RandomizedMultipartSigner<Signature> for SigningKey<D>
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> RandomizedPrehashSigner<Signature> for BlindedSigningKey<D>where
D: Digest + FixedOutputReset,
impl<D> RandomizedPrehashSigner<Signature> for BlindedSigningKey<D>where
D: Digest + FixedOutputReset,
Source§fn sign_prehash_with_rng<R: TryCryptoRng + ?Sized>(
&self,
rng: &mut R,
prehash: &[u8],
) -> Result<Signature>
fn sign_prehash_with_rng<R: TryCryptoRng + ?Sized>( &self, rng: &mut R, prehash: &[u8], ) -> Result<Signature>
Attempt to sign the given message digest, returning a digital signature on success, or an
error if something went wrong. Read more
Source§impl<D> RandomizedPrehashSigner<Signature> for SigningKey<D>
impl<D> RandomizedPrehashSigner<Signature> for SigningKey<D>
Source§fn sign_prehash_with_rng<R: TryCryptoRng + ?Sized>(
&self,
rng: &mut R,
prehash: &[u8],
) -> Result<Signature>
fn sign_prehash_with_rng<R: TryCryptoRng + ?Sized>( &self, rng: &mut R, prehash: &[u8], ) -> Result<Signature>
Attempt to sign the given message digest, returning a digital signature on success, or an
error if something went wrong. Read more
Source§impl<D> RandomizedSigner<Signature> for BlindedSigningKey<D>where
D: Digest + FixedOutputReset,
impl<D> RandomizedSigner<Signature> for BlindedSigningKey<D>where
D: Digest + FixedOutputReset,
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<D> RandomizedSigner<Signature> for SigningKey<D>
impl<D> RandomizedSigner<Signature> for SigningKey<D>
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
Source§impl<D> Verifier<Signature> for VerifyingKey<D>where
D: Digest + FixedOutputReset,
impl<D> Verifier<Signature> for VerifyingKey<D>where
D: Digest + FixedOutputReset,
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