pub trait RandomizedDigestSigner<D, S>{
    // Required method
    fn try_sign_digest_with_rng(
        &self,
        rng: impl CryptoRng + RngCore,
        digest: D,
    ) -> Result<S, Error>;
    // Provided method
    fn sign_digest_with_rng(
        &self,
        rng: impl CryptoRng + RngCore,
        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§
Provided Methods§
Sourcefn sign_digest_with_rng(&self, rng: impl CryptoRng + RngCore, digest: D) -> S
 
fn sign_digest_with_rng(&self, rng: impl CryptoRng + RngCore, digest: D) -> S
Sign the given prehashed message Digest, returning a signature.
Panics in the event of a signing error.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.