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
e58990a1c2
Add human-readable algorithm name as NAME constant.
2025-11-08 16:01:05 -06:00
Leo Vasanko
13445887e9
Constants renamed and values extracted from C code rather than function call at runtime. Documentation update.
2025-11-08 15:43:01 -06:00
Leo Vasanko
751a929836
Combine the two generator scripts into one that also reads ALIGNMENT and RATE from C sources.
2025-11-08 13:20:15 -06:00
Leo Vasanko
1dcdafa008
util.nonce_increment and util.wipe functions, also exported by each module for convenience.
2025-11-07 09:53:39 -06:00
Leo Vasanko
b15174af8b
Make random_key and random_nonce return bytearray, and add a nonce_increment utility function.
2025-11-07 07:43:33 -06:00
Leo Vasanko
1b4d43a448
Do not return True from MAC verify function on success.
2025-11-06 21:11:24 -06:00
Leo Vasanko
a8947c23b3
Add random_key and random_nonce functions to each submodule. Update docstrings to show the correct lengths for keys and nonces.
2025-11-06 20:03:56 -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
285f11299e
Remove Encryptor.final_detached(), as final() handles both cases identically (only returns MAC).
2025-11-06 16:33:04 -06:00
Leo Vasanko
3248fccbac
The update functions of libaegis now return the same number of bytes that went in. Update the binding accordingly.
2025-11-06 16:27:48 -06:00
Leo Vasanko
17a5f45394
Add comments to generated files saying how they are generated.
2025-11-06 15:31:29 -06:00
Leo Vasanko
d43a22bc6c
Build cleanup, pathname reorganisation, cdef to repository (although generated with gen_cdef.py).
2025-11-06 15:23:30 -06:00
Leo Vasanko
42ddaac6bc
Rename module to pyaegis, implement build with zig.
2025-11-06 10:47:54 -06:00