The script in this repository may be run using Octave. The code, which may be used to generate group1 PGV compression functions, is based on the characterization of collision structure presented in the paper "Linicrypt in the Ideal Cipher Model" by Z. Javar and B.M. Kapron.
Preneel, Govaerts, and Vandewalle proposed a sytematic way to construct 64 block-cipher-based compression functions using a single call to the cipher (rate-1) and Black, Pogaway and Shrimpton proved that, in black-box model, the 12 schemes (group1) that PGV singled out as secure really are secure and given tight upper and lower bounds on their collision resistance.
This code generates all 12 collision resistant PGV compression functions. Each function is presented as a 3
The equivalent compression function is