pub struct Signature { /* private fields */ }Expand description
Container of the DSA signature
Implementations§
Trait Implementations§
Source§impl<'a> DecodeValue<'a> for Signature
impl<'a> DecodeValue<'a> for Signature
Source§impl<D> DigestSigner<D, Signature> for SigningKey
impl<D> DigestSigner<D, Signature> for SigningKey
Source§impl<D> DigestVerifier<D, Signature> for VerifyingKey
impl<D> DigestVerifier<D, Signature> for VerifyingKey
Source§impl EncodeValue for Signature
impl EncodeValue for Signature
Source§impl MultipartSigner<Signature> for SigningKey
impl MultipartSigner<Signature> for SigningKey
Source§fn try_multipart_sign(&self, msg: &[&[u8]]) -> Result<Signature, Error>
fn try_multipart_sign(&self, msg: &[&[u8]]) -> Result<Signature, Error>
Equivalent of
Signer::try_sign() but the
message is provided in non-contiguous byte slices.Source§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 MultipartVerifier<Signature> for VerifyingKey
impl MultipartVerifier<Signature> for VerifyingKey
Source§fn multipart_verify(
&self,
msg: &[&[u8]],
signature: &Signature,
) -> Result<(), Error>
fn multipart_verify( &self, msg: &[&[u8]], signature: &Signature, ) -> Result<(), Error>
Equivalent of
Verifier::verify() but the
message is provided in non-contiguous byte slices.Source§impl PartialOrd for Signature
impl PartialOrd for Signature
Source§impl PrehashSigner<Signature> for SigningKey
impl PrehashSigner<Signature> for SigningKey
Source§fn sign_prehash(&self, prehash: &[u8]) -> Result<Signature, Error>
fn sign_prehash(&self, prehash: &[u8]) -> Result<Signature, Error>
Warning: This uses sha2::Sha256 as the hash function for the digest. If you need to use a different one, use SigningKey::sign_prehashed_rfc6979.
Source§impl PrehashVerifier<Signature> for VerifyingKey
impl PrehashVerifier<Signature> for VerifyingKey
Source§impl<D> RandomizedDigestSigner<D, Signature> for SigningKey
impl<D> RandomizedDigestSigner<D, Signature> for SigningKey
Source§fn try_sign_digest_with_rng<R: TryCryptoRng + ?Sized, F: Fn(&mut D) -> Result<(), Error>>(
&self,
rng: &mut R,
f: F,
) -> Result<Signature, Error>
fn try_sign_digest_with_rng<R: TryCryptoRng + ?Sized, F: Fn(&mut D) -> Result<(), Error>>( &self, rng: &mut R, f: F, ) -> Result<Signature, Error>
Attempt to sign a message by updating the received
Digest with it,
returning a digital signature on success, or an error if something went wrong. Read moreSource§impl SignatureEncoding for Signature
impl SignatureEncoding for Signature
Source§impl Signer<Signature> for SigningKey
impl Signer<Signature> for SigningKey
Source§impl Verifier<Signature> for VerifyingKey
impl Verifier<Signature> for VerifyingKey
impl Sequence<'_> 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
Source§type Error = <T as DecodeValue<'a>>::Error
type Error = <T as DecodeValue<'a>>::Error
Type returned in the event of a decoding error.
Source§fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
Attempt to decode this TLV message using the provided decoder.
Source§impl<T> Encode for T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this TLV object as ASN.1 DER using the provided Writer.
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this TLV object to the provided byte slice, returning a sub-slice
containing the encoded message.
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit