added max mask
This commit is contained in:
@@ -18,6 +18,9 @@ async fn run() {
|
||||
File::create("results.txt").expect("cannot create results.txt"),
|
||||
);
|
||||
|
||||
let width: u8 = 13;
|
||||
let width_max_mask: u32 = (1 << width) - 1;
|
||||
|
||||
let count = cracker.run(
|
||||
&[
|
||||
TestCase::masked(vec![0x01, 0x23, 0x45, 0x67, 0x89, 0x00], 0x94, 0x00FF),
|
||||
@@ -38,9 +41,9 @@ async fn run() {
|
||||
TestCase::masked(vec![0x01, 0x23, 0x45, 0x67, 0x89, 0x0F], 0x3C, 0x00FF),
|
||||
],
|
||||
&Constraints {
|
||||
width: 13,
|
||||
poly: ValueRange::Range(0x0000..=0x1FFF),
|
||||
init: ValueRange::Range(0x0000..=0x1FFF),
|
||||
width,
|
||||
poly: ValueRange::Range(0x0000..=width_max_mask),
|
||||
init: ValueRange::Range(0x0000..=width_max_mask),
|
||||
xorout: ValueRange::Fixed(0x0000),
|
||||
refin: None,
|
||||
refout: None,
|
||||
|
||||
Reference in New Issue
Block a user