pub trait RandomizedDigestSigner<D: Digest, S> {
    fn try_sign_digest_with_rng(
        &self,
        rng: &mut impl CryptoRngCore,
        digest: D
    ) -> Result<S, Error>; fn sign_digest_with_rng(&self, rng: &mut impl CryptoRngCore, digest: D) -> S { ... } }
Available on crate features digest-preview and rand-preview only.
Expand description

Combination of DigestSigner and RandomizedSigner with support for computing a signature over a digest which requires entropy from an RNG.

Required Methods

Attempt to sign the given prehashed message Digest, returning a digital signature on success, or an error if something went wrong.

Provided Methods

Sign the given prehashed message Digest, returning a signature.

Panics in the event of a signing error.

Implementors