Files
tea3-py/README.md
T
2026-07-07 13:56:14 +02:00

855 B

tea3-py

install

python -m venv .venv
source .venv/bin/activate
pip install -e .

run tests

pip install pytest
pytest

run linear and differential bias empirical tests

in the venv

tea3-linear-bias
tea3-differential-bias

derive lookup tables

lookup-tables

run sagemath script

deactivate the venv first, then with sagemath installed:

./run_sage.sh

Modes are:

  1. Classic inspection
  2. Advanced inspection with forced 0 or 1 bits
  3. Exhaustive variable-change search
  4. S box analysis
  5. Variable XOR
  6. F31, F32 analysis
  7. Exhaustive XOR search
  8. Cube attack search
  9. Precompute and save model
  10. Load model

n steps can be precomputed and then loaded for the offline part of the cube attack with the menu entry 9 and 10.