Skip to main content

poseidon_block_cipher

Function poseidon_block_cipher 

Source
pub fn poseidon_block_cipher<F: Field, SC: SpongeConstants, const FULL_ROUNDS: usize>(
    params: &ArithmeticSpongeParams<F, FULL_ROUNDS>,
    state: &mut [F],
)
Expand description

Run a single instance of the Poseidon permutation.

§Arguments

§Security

NOTE: Because this function can only be called with fixed-length input states of length SpongeConstants::SPONGE_WIDTH, the function will not incur in trailing-zeros padding type of collisions.