wolfssl-examples/crypto/siphash
Aidan Keefe f5c6e02ba6 new injection mechanic in CI/CD and github review fixes 2026-08-07 19:14:40 -06:00
..
Makefile new injection mechanic in CI/CD and github review fixes 2026-08-07 19:14:40 -06:00
README.md Add SipHash example 2026-07-29 13:39:03 -04:00
siphash-mac.c Add SipHash example 2026-07-29 13:39:03 -04:00

README.md

wolfSSL SipHash Example

Demonstrates SipHash-2-4 keyed MACs with the wc_SipHash* API: one-shot 64-bit and 128-bit tags plus the incremental Init/Update/Final interface, checked against the reference implementation's test vector.

SipHash is a fast keyed pseudorandom function for short inputs. Typical uses are hash-table flooding protection and lightweight per-packet authentication; it is not a general-purpose collision-resistant hash.

Building wolfSSL

./configure --enable-siphash
make
sudo make install

Building and running the example

make
./siphash-mac