Skip to main content

MERSENNE31_POSEIDON1_S_BOX_DEGREE

Constant MERSENNE31_POSEIDON1_S_BOX_DEGREE 

Source
pub const MERSENNE31_POSEIDON1_S_BOX_DEGREE: u64 = 5;
Expand description

S-box degree for Mersenne31 Poseidon1.

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(alpha, p - 1) = 1 is 5.