linear_cryptanalysis

simple linear cryptanalysis attack on an spn
git clone git://git.superpozycja.net/linear_cryptanalysis
Log | Files | Refs | README

main.rs (358B)


      1 use linear_cryptanalysis as la;
      2 
      3 /* really long comment ldkfjkldskjfldsfjsd;lfkjfd;lgkjsdf;glkjsdf;lgkjsfdldl;gkjsdl;fgkjsdl;gkjsdl;fgkjsdl;gkjsdl;fgkjs;gkjsdl;fgkjs */
      4 
      5 fn main() {
      6     let pt = [0b0010_0110, 0b1011_0111];
      7     let key = [0b0011_1010, 0b1001_0100, 0b1101_0110, 0b0011_1111];
      8     let ct = la::encrypt(&pt,  &key);
      9 
     10     la::print_block(&ct);
     11 }