pub struct CurlP { /* private fields */ }bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.
Expand description
State of the ternary cryptographic function CurlP.
Implementations§
Trait Implementations§
Source§impl Sponge for CurlP
impl Sponge for CurlP
Source§fn reset(&mut self)
👎Deprecated: bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.
fn reset(&mut self)
bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.
Reset the internal state by overwriting it with zeros.
Source§fn absorb(&mut self, input: &Trits) -> Result<(), Self::Error>
👎Deprecated: bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.
fn absorb(&mut self, input: &Trits) -> Result<(), Self::Error>
bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.
Absorb input into the sponge by copying HASH_LENGTH chunks of it into its internal state and transforming
the state before moving on to the next chunk.
If input is not a multiple of HASH_LENGTH with the last chunk having n < HASH_LENGTH trits, the last chunk
will be copied to the first n slots of the internal state. The remaining data in the internal state is then
just the result of the last transformation before the data was copied, and will be reused for the next
transformation.
Source§fn squeeze_into(&mut self, buf: &mut Trits) -> Result<(), Self::Error>
👎Deprecated: bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.
fn squeeze_into(&mut self, buf: &mut Trits) -> Result<(), Self::Error>
bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.
Squeeze the sponge by copying the state into the provided buf. This will fill the buffer in chunks of
HASH_LENGTH at a time.
If the last chunk is smaller than HASH_LENGTH, then only the fraction that fits is written into it.
Source§type Error = Infallible
type Error = Infallible
bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.
Source§fn squeeze(&mut self) -> Result<TritBuf, Self::Error>
fn squeeze(&mut self) -> Result<TritBuf, Self::Error>
bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.
Sponge::squeeze_into to return an owned output.Source§fn digest_into(
&mut self,
input: &Trits,
buf: &mut Trits,
) -> Result<(), Self::Error>
fn digest_into( &mut self, input: &Trits, buf: &mut Trits, ) -> Result<(), Self::Error>
bee-crypto will not be supported in future versions. You can use functions from iota-crypto instead.
input, squeeze the sponge into buf, and reset the sponge.