period finder, brute force
This commit is contained in:
+3
-1
@@ -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]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user