1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/opencrypto 4.PATH: ${SRCTOP}/sys/crypto 5.PATH: ${SRCTOP}/sys/crypto/blowfish 6.PATH: ${SRCTOP}/sys/crypto/camellia 7.PATH: ${SRCTOP}/sys/crypto/des 8.PATH: ${SRCTOP}/sys/crypto/rijndael 9.PATH: ${SRCTOP}/sys/crypto/sha2 10.PATH: ${SRCTOP}/sys/crypto/siphash 11.PATH: ${SRCTOP}/sys/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# unroll the 256 and 512 loops, half unroll the 1024 23CFLAGS+= -DSKEIN_LOOP=995 24.if exists(${MACHINE_ARCH}/skein_block_asm.s) 25.PATH: ${SRCTOP}/sys/crypto/skein/${MACHINE_ARCH} 26SRCS += skein_block_asm.s 27CFLAGS += -DSKEIN_ASM -DSKEIN_USE_ASM=1792 # list of block functions to replace with assembly: 256+512+1024 = 1792 28ACFLAGS += -DELF -Wa,--noexecstack 29# Fully unroll all loops in the assembly optimized version 30AFLAGS+= --defsym SKEIN_LOOP=0 31.endif 32SRCS += siphash.c 33SRCS += gmac.c gfmult.c 34SRCS += opt_param.h cryptodev_if.h bus_if.h device_if.h 35SRCS += opt_ddb.h 36 37.include <bsd.kmod.mk> 38