Skip to main content

MERSENNE31_S_BOX_DEGREE

Constant MERSENNE31_S_BOX_DEGREE 

Source
pub const MERSENNE31_S_BOX_DEGREE: u64 = 5;
Expand description

S-box degree for Mersenne31 Poseidon2.

Since p - 1 = 2 × 3^2 × 7 × 11 × 31 × 151 × 331, both 3 and 4 share factors with p - 1. The smallest valid exponent satisfying gcd(α, p - 1) = 1 is 5.