55 lines
855 B
Markdown
55 lines
855 B
Markdown
# tea3-py
|
|
|
|
## install
|
|
|
|
```bash
|
|
python -m venv .venv
|
|
source .venv/bin/activate
|
|
pip install -e .
|
|
```
|
|
|
|
## run tests
|
|
|
|
```bash
|
|
pip install pytest
|
|
pytest
|
|
```
|
|
|
|
## run linear and differential bias empirical tests
|
|
|
|
in the venv
|
|
|
|
```bash
|
|
tea3-linear-bias
|
|
tea3-differential-bias
|
|
```
|
|
|
|
## derive lookup tables
|
|
|
|
```bash
|
|
lookup-tables
|
|
```
|
|
|
|
## run sagemath script
|
|
|
|
`deactivate` the venv first, then with sagemath installed:
|
|
|
|
```bash
|
|
./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.
|