Portable C implementations of AEGIS (AEGIS-128L and AEGIS-256), with runtime CPU detection.
- AEGIS-128L with 16 and 32 bytes tags
- AEGIS-256 with 16 and 32 bytes tags
- Encryption and decryption with attached and detached tags
- Incremental encryption and decryption.
zig build -Drelease
The library is installed in the zig-out/lib
folder.
Public inludes are in the src/include
folder.
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/install/prefix ..
make install
Copy everything in src
directly into your project, and compile everything like regular C code. No special configuration is required.
Include <aegis.h>
and call aegis_init()
prior to doing anything else with the library.
aegis_init()
checks the CPU capabilities in order to later use the fastest implementations.