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
params- The Poseidon parameters containing the MDS matrix and round constants.state- The state array to permute in place. Must have lengthSpongeConstants::SPONGE_WIDTH(e.g.,3forPlonkSpongeConstantsKimchi).
§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.