Add comments to generated files saying how they are generated.

This commit is contained in:
2025-11-07 03:31:29 +00:00
parent b83120187c
commit 302429b7a4
9 changed files with 23 additions and 1 deletions
+3
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
+3
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
+3
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
+3
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
+3
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
+3
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
+2
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;
+2
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;",
"",