Differential Cryptanalysis
Classical differential cryptanalysis
Differential cryptanalysis studies how input differences propagate through a cipher. For an S-box , the differential probability of an input difference mapping to an output difference is:
Power map differentials
For the power map over , the differential uniformity is well studied:
- For (cube): differential uniformity is 2 (for most primes)
- For : differential uniformity is 4
- For : differential uniformity is 6
In general, for odd:
The maximum differential probability per S-box is therefore , which is negligible for large .
Differential trails in AO hash functions
A differential trail over rounds specifies the input and output differences at each round. The probability of the trail is the product of the per-round probabilities.
For full rounds (S-box on every element), the MDS matrix ensures that active S-boxes spread to all positions. The branch number of the MDS matrix gives:
where is the state width. This gives a lower bound on the number of active S-boxes over the full cipher.
Partial round complication
In Poseidon's partial rounds, only one S-box is active per round. This means differential trails through partial rounds can have fewer active S-boxes. The security argument relies on the full rounds at the beginning and end providing sufficient diffusion.
References
- Biham, Shamir. "Differential Cryptanalysis of DES-like Cryptosystems" (Journal of Cryptology, 1991)
- Grassi et al. "Poseidon" (2021), Section on differential analysis