Trait bee_crypto::ternary::sponge::Sponge [−][src]
pub trait Sponge {
type Error;
fn reset(&mut self);
fn absorb(&mut self, input: &Trits) -> Result<(), Self::Error>;
fn squeeze_into(&mut self, buf: &mut Trits) -> Result<(), Self::Error>;
fn squeeze(&mut self) -> Result<TritBuf, Self::Error> { ... }
fn digest_into(
&mut self,
input: &Trits,
buf: &mut Trits
) -> Result<(), Self::Error> { ... }
fn digest(&mut self, input: &Trits) -> Result<TritBuf, Self::Error> { ... }
}
bee-crypto
will not be supported in future versions. You can use functions from iota-crypto
instead.
Expand description
The common interface of ternary cryptographic hash functions that follow the sponge construction.
Associated Types
Required methods
bee-crypto
will not be supported in future versions. You can use functions from iota-crypto
instead.
Reset the inner state of the sponge.
bee-crypto
will not be supported in future versions. You can use functions from iota-crypto
instead.
Absorb input
into the sponge.
Provided methods
bee-crypto
will not be supported in future versions. You can use functions from iota-crypto
instead.
Convenience function using Sponge::squeeze_into
to return an owned output.
bee-crypto
will not be supported in future versions. You can use functions from iota-crypto
instead.
Convenience function to absorb input
, squeeze the sponge into buf
, and reset the sponge.