Add comments to generated files saying how they are generated.

This commit is contained in:
Leo Vasanko
2025-11-06 15:31:29 -06:00
parent d43a22bc6c
commit 17a5f45394
9 changed files with 23 additions and 1 deletions

View File

@@ -6,6 +6,9 @@ into user-provided buffers via optional `into=` (and `mac_into=` for detached).
Error return codes from the C library raise ValueError.
"""
# All modules are generated from aegis128l.py by tools/gen_modules.py!
# DO NOT EDIT OTHER ALGORITHM FILES MANUALLY!
import errno
from collections.abc import Buffer

View File

@@ -6,6 +6,9 @@ into user-provided buffers via optional `into=` (and `mac_into=` for detached).
Error return codes from the C library raise ValueError.
"""
# All modules are generated from aegis128x2.py by tools/gen_modules.py!
# DO NOT EDIT OTHER ALGORITHM FILES MANUALLY!
import errno
from collections.abc import Buffer

View File

@@ -6,6 +6,9 @@ into user-provided buffers via optional `into=` (and `mac_into=` for detached).
Error return codes from the C library raise ValueError.
"""
# All modules are generated from aegis128x4.py by tools/gen_modules.py!
# DO NOT EDIT OTHER ALGORITHM FILES MANUALLY!
import errno
from collections.abc import Buffer

View File

@@ -6,6 +6,9 @@ into user-provided buffers via optional `into=` (and `mac_into=` for detached).
Error return codes from the C library raise ValueError.
"""
# All modules are generated from aegis256.py by tools/gen_modules.py!
# DO NOT EDIT OTHER ALGORITHM FILES MANUALLY!
import errno
from collections.abc import Buffer

View File

@@ -6,6 +6,9 @@ into user-provided buffers via optional `into=` (and `mac_into=` for detached).
Error return codes from the C library raise ValueError.
"""
# All modules are generated from aegis256x2.py by tools/gen_modules.py!
# DO NOT EDIT OTHER ALGORITHM FILES MANUALLY!
import errno
from collections.abc import Buffer

View File

@@ -6,6 +6,9 @@ into user-provided buffers via optional `into=` (and `mac_into=` for detached).
Error return codes from the C library raise ValueError.
"""
# All modules are generated from aegis256x4.py by tools/gen_modules.py!
# DO NOT EDIT OTHER ALGORITHM FILES MANUALLY!
import errno
from collections.abc import Buffer

View File

@@ -1,3 +1,5 @@
/* This file is generated with tools/gen_cdef.py. Do not edit. */
typedef unsigned char uint8_t;
typedef unsigned long size_t;

View File

@@ -99,6 +99,8 @@ def generate_cdef(include_dir: pathlib.Path) -> str:
"""Generate the complete CFFI cdef string from all aegis headers."""
lines = [
"/* This file is generated with tools/gen_cdef.py. Do not edit. */",
"",
"typedef unsigned char uint8_t;",
"typedef unsigned long size_t;",
"",