Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

C functions and buffers

Build the library with cargo build --locked -p quantaegis-ffi --release and include quantaegis.h in the calling program. The caller supplies buffers and byte lengths. The header specifies the required sizes and rules for overlapping buffers. Functions and constants

Check the returned quantaegis_status_t against QUANTAEGIS_OK before using the output. Pass an error code to quantaegis_status_message for a description. Wipe caller-owned secret buffers with quantaegis_zeroize when finished.

On Linux, after building the release library, compile and run the C11 example from the repository root.

cc -std=c11 -I crates/quantaegis-ffi/include crates/quantaegis-ffi/examples/smoke.c \
  -L target/release -lquantaegis_ffi -Wl,-rpath,target/release -o target/quantaegis-smoke
./target/quantaegis-smoke

Download the example