aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/crypto
diff options
context:
space:
mode:
authorAllan Jude <allanjude@FreeBSD.org>2016-05-29 01:15:36 +0000
committerAllan Jude <allanjude@FreeBSD.org>2016-05-29 01:15:36 +0000
commitb468a9ff1d3a70c6d14cf2b49574cbbcc60ff997 (patch)
tree59f55ee6a0d920a0aada43db03458cad3bea0e3f /sys/modules/crypto
parent31dd9effd91ca134be7bcaabee571765c265a671 (diff)
parent92f76dc624c277a7c731733a4e51997c0e9ad981 (diff)
Notes
Diffstat (limited to 'sys/modules/crypto')
-rw-r--r--sys/modules/crypto/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/modules/crypto/Makefile b/sys/modules/crypto/Makefile
index b4765716d209..35e533b8038e 100644
--- a/sys/modules/crypto/Makefile
+++ b/sys/modules/crypto/Makefile
@@ -8,6 +8,7 @@
.PATH: ${.CURDIR}/../../crypto/rijndael
.PATH: ${.CURDIR}/../../crypto/sha2
.PATH: ${.CURDIR}/../../crypto/siphash
+.PATH: ${.CURDIR}/../../crypto/skein
KMOD = crypto
SRCS = crypto.c cryptodev_if.c
@@ -17,6 +18,13 @@ SRCS += skipjack.c bf_enc.c bf_ecb.c bf_skey.c
SRCS += camellia.c camellia-api.c
SRCS += des_ecb.c des_enc.c des_setkey.c
SRCS += sha1.c sha256c.c sha512c.c
+SRCS += skein.c skein_block.c
+.if exists(${MACHINE_ARCH}/skein_block_asm.s)
+.PATH: ${.CURDIR}/../../crypto/skein/${MACHINE_ARCH}
+SRCS += skein_block_asm.s
+CFLAGS += -DSKEIN_ASM -DSKEIN_USE_ASM=1792 # list of block functions to replace with assembly: 256+512+1024 = 1792
+ACFLAGS += -DELF -Wa,--noexecstack
+.endif
SRCS += siphash.c
SRCS += gmac.c gfmult.c
SRCS += opt_param.h cryptodev_if.h bus_if.h device_if.h