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> { ... } }
👎 Deprecated:

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

👎 Deprecated:

bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.

An error indicating that a failure has occured during a sponge operation.

Required methods

👎 Deprecated:

bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.

Reset the inner state of the sponge.

👎 Deprecated:

bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.

Absorb input into the sponge.

👎 Deprecated:

bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.

Squeeze the sponge into buf.

Provided methods

👎 Deprecated:

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.

👎 Deprecated:

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.

👎 Deprecated:

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, reset the sponge and return an owned output.

Implementors