Skip to main content

permute

Function permute 

Source
pub fn permute(input: &mut [Goldilocks; 12])
Expand description

Applies the Poseidon2 permutation to a 12-element state array.

This is the core permutation function used by the hash. It applies:

  • External linear layer
  • Full rounds (first half)
  • Partial rounds
  • Full rounds (second half)