linear_cryptanalysis

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

commit 66902b6e60311feb2d1855ad86ed5c195d952083
parent 7b291d89e28a5f3e1fcd16e06d0f02a712b761b4
Author: superpozycja <anna@superpozycja.net>
Date:   Thu, 12 Sep 2024 22:26:17 +0200

test something

Diffstat:
Msrc/main.rs | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -4,5 +4,7 @@ fn main() { let pt = [0b0010_0110, 0b1011_0111]; let key = [0b0011_1010, 0b1001_0100, 0b1101_0110, 0b0011_1111]; let ct = la::encrypt(&pt, &key); + + println!("ciphertext:"); la::print_block(&ct); }