Combine the two generator scripts into one that also reads ALIGNMENT and RATE from C sources.

This commit is contained in:
2025-11-09 01:20:15 +00:00
parent 1f506806d4
commit 28ee0e1314
11 changed files with 266 additions and 314 deletions
+2 -8
View File
@@ -74,16 +74,10 @@ This creates files in the `dist/` directory.
## Code Generation
The Python modules are generated from templates. If you modify the core implementation in `pyaegis/aegis256x4.py`, regenerate the other variants:
The Python modules and CFFI definitions are generated from C sources and templates. If you modify the core implementation in `pyaegis/aegis256x4.py` or update libaegis headers, regenerate all files:
```fish
python tools/gen_modules.py
```
If you update libaegis headers, regenerate the CFFI definitions:
```fish
python tools/gen_cdef.py
python tools/generate.py
```
## Troubleshooting