period finder, brute force

This commit is contained in:
2026-04-07 10:18:31 +02:00
parent 0c3876f9f5
commit 2cf6a50d40
2 changed files with 64 additions and 2 deletions
+3 -1
View File
@@ -2,7 +2,7 @@ mod lfsr;
mod tea3;
use lfsr::Lfsr;
use tea3::Tea3;
use tea3::{Tea3, period_floyd};
fn main() {
let mut lfsr = Lfsr::new(4, vec![0, 3], vec![0x12, 0x34, 0x56, 0x78]);
@@ -46,4 +46,6 @@ fn main() {
.collect();
println!("Decrypted : {:?}", decrypted);
// println!("\nperiod: {}", period_floyd(vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0], vec![0; 8]));
}