93bdbc26a2
Remove Encryptor.final_detached(), as final() handles both cases identically (only returns MAC).
LeoVasanko2025-11-07 04:33:04 +00:00
2612dc8187
The update functions of libaegis now return the same number of bytes that went in. Update the binding accordingly.
LeoVasanko2025-11-07 04:27:48 +00:00
302429b7a4
Add comments to generated files saying how they are generated.
LeoVasanko2025-11-07 03:31:29 +00:00
b83120187c
Build cleanup, pathname reorganisation, cdef to repository (although generated with gen_cdef.py).
LeoVasanko2025-11-07 03:23:30 +00:00
1b4d43a448
Do not return True from MAC verify function on success.
Leo Vasanko2025-11-06 21:11:24 -06:00
a8947c23b3
Add random_key and random_nonce functions to each submodule. Update docstrings to show the correct lengths for keys and nonces.
Leo Vasanko2025-11-06 20:03:56 -06:00
2677df3bde
Remove examples folder, keep benchmark as pyaegis.benchmark that becomes part of the install.
Leo Vasanko2025-11-06 19:55:51 -06:00
7175654b27
API cleanup for simplified update/final. Returns bytearrays when into is not used. Allows into buffers larger than needed. Misc other changes.
Leo Vasanko2025-11-06 19:38:18 -06:00
285f11299e
Remove Encryptor.final_detached(), as final() handles both cases identically (only returns MAC).
Leo Vasanko2025-11-06 16:33:04 -06:00
3248fccbac
The update functions of libaegis now return the same number of bytes that went in. Update the binding accordingly.
Leo Vasanko2025-11-06 16:27:48 -06:00
0ae8752666
Rename module to pyaegis, implement build with zig.
LeoVasanko2025-11-06 21:34:15 +00:00
17a5f45394
Add comments to generated files saying how they are generated.
Leo Vasanko2025-11-06 15:31:29 -06:00
d43a22bc6c
Build cleanup, pathname reorganisation, cdef to repository (although generated with gen_cdef.py).
Leo Vasanko2025-11-06 15:23:30 -06:00
df6b1b2832
Add tests for all functions of each algorithm against AEGIS test vectors (JSON). Incremental updates are tested with randomized splits to catch a variety of errors.
LeoVasanko2025-11-06 19:56:12 +00:00
3579b94e83
Add tests for all functions of each algorithm against AEGIS test vectors (JSON). Incremental updates are tested with randomized splits to catch a variety of errors.
Leo Vasanko2025-11-06 07:56:12 -06:00
bcf4655f64
Precise update output length calculation to allocate exactly sized buffers.
Leo Vasanko2025-11-06 07:45:15 -06:00
2ffe7b6c0e
Add helper function for calculating the incremental update output buffer size. Add bytes_in and bytes_out counters on the incremental classes. Avoid ERANGE errors caused by too small output buffer.
LeoVasanko2025-11-06 03:13:46 +00:00
438627e0db
Add helper function for calculating the incremental update output buffer size. Add bytes_in and bytes_out counters on the incremental classes. Avoid ERANGE errors caused by too small output buffer.
Leo Vasanko2025-11-05 15:13:46 -06:00
618d9e0967
Make key, nonce the first arguments (in this order), require kwargs past the initial few positional arguments. Add ALIGNMENT constant to each module. Add a script to generate all other modules from aegis256x4.py.
LeoVasanko2025-11-05 08:26:47 +00:00
02310675b7
Make key, nonce the first arguments (in this order), require kwargs past the initial few positional arguments. Add ALIGNMENT constant to each module. Add a script to generate all other modules from aegis256x4.py.
Leo Vasanko2025-11-04 20:26:47 -06:00