Leo Vasanko
04f1c3067c
Ruff formatting.
2025-11-12 11:43:04 -06:00
Leo Vasanko
62fc8fa855
Make Mac class prevent further updates or final after finalisation. Keep cached values for hashlib API.
2025-11-09 08:53:50 -06:00
Leo Vasanko
67c2958384
Cleanup
2025-11-08 20:39:41 -06:00
Leo Vasanko
a6faaf9f62
Simplify implementation: remove bytes_in and bytes_out counters from all classes.
2025-11-08 20:09:26 -06:00
Leo Vasanko
95563a43d1
API updates:
...
- Mac class follows hashlib API: digest functions added and finalization no longer modifies state.
- Encryptor and Decryptor now raise RuntimeError if still used after final.
Documentation updated with the changes and further examples.
Tests updated with the changes, new test module for error cases (test_raises).
Docstrings improved.
2025-11-08 18:53:27 -06:00
Leo Vasanko
7175654b27
API cleanup for simplified update/final. Returns bytearrays when into is not used. Allows into buffers larger than needed. Misc other changes.
2025-11-06 19:38:18 -06:00
Leo Vasanko
fbf9c944e6
Include zig build in the build process.
2025-11-06 16:43:54 -06:00
Leo Vasanko
fd24bb02f8
Test cleanup, remove debug.
2025-11-06 16:33:51 -06:00
Leo Vasanko
42ddaac6bc
Rename module to pyaegis, implement build with zig.
2025-11-06 10:47:54 -06:00
Leo Vasanko
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.
2025-11-06 07:56:12 -06:00