Skip to main content

RandomizedMultipartSigner

Trait RandomizedMultipartSigner 

Source
pub trait RandomizedMultipartSigner<S> {
    // Required method
    fn try_multipart_sign_with_rng<R: TryCryptoRng + ?Sized>(
        &self,
        rng: &mut R,
        msg: &[&[u8]],
    ) -> Result<S, Error>;

    // Provided method
    fn multipart_sign_with_rng<R: CryptoRng + ?Sized>(
        &self,
        rng: &mut R,
        msg: &[&[u8]],
    ) -> S { ... }
}
Expand description

Equivalent of RandomizedSigner but the message is provided in non-contiguous byte slices.

Required Methods§

Source

fn try_multipart_sign_with_rng<R: TryCryptoRng + ?Sized>( &self, rng: &mut R, msg: &[&[u8]], ) -> Result<S, Error>

Equivalent of RandomizedSigner::try_sign_with_rng() but the message is provided in non-contiguous byte slices.

§Errors

Returns implementation-specific errors in the event signing failed (e.g. KMS or HSM communication error), or if the provided rng experiences an internal failure.

Provided Methods§

Source

fn multipart_sign_with_rng<R: CryptoRng + ?Sized>( &self, rng: &mut R, msg: &[&[u8]], ) -> S

Equivalent of RandomizedSigner::sign_with_rng() but the message is provided in non-contiguous byte slices.

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.

Implementors§