2024-05-31 12:59:58 +02:00
|
|
|
.PATH: ${.CURDIR}/..
|
|
|
|
|
|
|
|
AEAD= wycheproof_aead
|
|
|
|
|
|
|
|
PROGS= ${AEAD}
|
|
|
|
NOMAN= noman
|
|
|
|
|
|
|
|
SRCS_wycheproof_aead= wycheproof_aead.c
|
|
|
|
|
2024-05-31 18:47:18 +02:00
|
|
|
DPADD+= ${.CURDIR}/../lib/obj/liblilcrypto.a
|
2024-05-31 12:59:58 +02:00
|
|
|
LDADD+= ${.CURDIR}/../lib/obj/liblilcrypto.a
|
|
|
|
|
|
|
|
|
|
|
|
tests: all tests-aead
|
|
|
|
|
|
|
|
tests-aead:
|
|
|
|
.ifndef WYCHEPROOF_DIR
|
|
|
|
@echo Undefined WYCHEPROOF_DIR; false
|
|
|
|
.endif
|
|
|
|
.for p in ${AEAD}
|
2024-05-31 18:53:05 +02:00
|
|
|
perl ${.CURDIR}/aead.pl ${TESTOPTS} -x ./${p} \
|
2024-05-31 12:59:58 +02:00
|
|
|
${WYCHEPROOF_DIR}/testvectors/chacha20_poly1305_test.json \
|
|
|
|
${WYCHEPROOF_DIR}/testvectors_v1/chacha20_poly1305_test.json
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|