SpongeExt

Trait SpongeExt 

Source
pub trait SpongeExt: CryptographicSponge {
    type State: Clone;

    // Required methods
    fn from_state(state: Self::State, params: &Self::Parameters) -> Self;
    fn into_state(self) -> Self::State;
}
Expand description

An extension for the interface of a cryptographic sponge. In addition to operations defined in CryptographicSponge, SpongeExt can convert itself to a state, and instantiate itself from state.

Required Associated Types§

Source

type State: Clone

The full state of the cryptographic sponge.

Required Methods§

Source

fn from_state(state: Self::State, params: &Self::Parameters) -> Self

Returns a sponge that uses state.

Source

fn into_state(self) -> Self::State

Consumes self and returns the state.

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§