sbox analysis

This commit is contained in:
2026-05-04 10:06:17 +02:00
parent 5a3ea41a03
commit 3b3bbbb220
2 changed files with 22 additions and 2 deletions
+6 -2
View File
@@ -1,6 +1,7 @@
from tea3.pretty_print import pretty_print
from tea3.tea3model import Tea3Model
from tea3.variable_search import run_exhaustive
from tea3.sbox import run_sbox
def prompt_int(message: str, lo: int, hi: int) -> int:
@@ -83,13 +84,16 @@ def main():
print("\nChoose a mode:")
print(" 1) Classic inspection")
print(" 2) Exhaustive variable-change search")
print(" 3) S box analysis")
mode = prompt_choice("Your choice (1 or 2): ", {1, 2})
mode = prompt_choice("Your choice (1, 2 or 3): ", {1, 2, 3})
if mode == 1:
run_classic_cli()
else:
elif mode == 2:
run_exhaustive_cli()
else:
run_sbox()
main()