-rwxr-xr-x 781 attackntrw-20220829/doit raw
#!/bin/sh
wget https://bench.cr.yp.to/supercop/supercop-20220506.tar.xz
unxz < supercop-20220506.tar.xz | tar -xf -
( cd supercop-20220506
touch crypto_kem/ntruhrss701/used
sed -i 1q okcompilers/c
: > okcompilers/cpp
./do-part init
./do-part keccak
./do-part crypto_core invhrss701
./do-part crypto_core keccakf160032bits
./do-part crypto_core keccakf160064bits
./do-part crypto_sort int32
./do-part crypto_hash sha3256
./do-part crypto_stream chacha20
./do-part crypto_rng
./do-part crypto_kem ntruhrss701
)
gcc -O -o attackntrw attackntrw.c \
-Wall -Wextra -fsanitize=address \
-I supercop-*/bench/*/include/amd64/constbranchindex \
-L supercop-*/bench/*/lib/amd64 \
-lsupercop -lfastrandombytes -lsupercop -lkeccak -lkernelrandombytes
./attackntrw