Struct bee_crypto::ternary::sponge::Kerl[][src]

pub struct Kerl { /* fields omitted */ }
👎 Deprecated:

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

👎 Deprecated:

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

Creates a new Kerl.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

👎 Deprecated:

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.

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.

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.

👎 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.

👎 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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.