1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../opencrypto 4.PATH: ${.CURDIR}/../../crypto 5.PATH: ${.CURDIR}/../../crypto/blowfish 6.PATH: ${.CURDIR}/../../crypto/camellia 7.PATH: ${.CURDIR}/../../crypto/des 8.PATH: ${.CURDIR}/../../crypto/rijndael 9.PATH: ${.CURDIR}/../../crypto/sha2 10.PATH: ${.CURDIR}/../../crypto/siphash 11.PATH: ${.CURDIR}/../../crypto/skein 12 13KMOD = crypto 14SRCS = crypto.c cryptodev_if.c 15SRCS += criov.c cryptosoft.c xform.c 16SRCS += cast.c cryptodeflate.c rmd160.c rijndael-alg-fst.c rijndael-api.c rijndael-api-fst.c 17SRCS += skipjack.c bf_enc.c bf_ecb.c bf_skey.c 18SRCS += camellia.c camellia-api.c 19SRCS += des_ecb.c des_enc.c des_setkey.c 20SRCS += sha1.c sha256c.c sha512c.c 21SRCS += skein.c skein_block.c 22.if exists(${MACHINE_ARCH}/skein_block_asm.s) 23.PATH: ${.CURDIR}/../../crypto/skein/${MACHINE_ARCH} 24SRCS += skein_block_asm.s 25CFLAGS += -DSKEIN_ASM -DSKEIN_USE_ASM=1792 # list of block functions to replace with assembly: 256+512+1024 = 1792 26ACFLAGS += -DELF -Wa,--noexecstack 27.endif 28SRCS += siphash.c 29SRCS += gmac.c gfmult.c 30SRCS += opt_param.h cryptodev_if.h bus_if.h device_if.h 31SRCS += opt_ddb.h 32 33.include <bsd.kmod.mk> 34