Struct bee_crypto::ternary::sponge::Kerl [−][src]
pub struct Kerl { /* fields omitted */ }
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 Kerl
.
Implementations
Trait Implementations
👎 Deprecated: bee-crypto
will not be supported in future versions. You can use functions from iota-crypto
instead.
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.
👎 Deprecated: bee-crypto
will not be supported in future versions. You can use functions from iota-crypto
instead.
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.
👎 Deprecated: bee-crypto
will not be supported in future versions. You can use functions from iota-crypto
instead.
bee-crypto
will not be supported in future versions. You can use functions from iota-crypto
instead.
Squeeze the sponge by copying the calculated hash 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.
type Error = Error
type Error = Error
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.
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.
Auto Trait Implementations
impl RefUnwindSafe for Kerl
impl UnwindSafe for Kerl
Blanket Implementations
Mutably borrows from an owned value. Read more