aesni - Bind into build system & LINT
authorAlex Hornung <ahornung@gmail.com>
Sat, 21 Aug 2010 12:17:11 +0000 (13:17 +0100)
committerAlex Hornung <ahornung@gmail.com>
Sat, 21 Aug 2010 13:14:02 +0000 (14:14 +0100)
sys/config/LINT
sys/crypto/Makefile
sys/platform/pc32/conf/files
sys/platform/pc64/conf/files

index c997e7d..8a34418 100644 (file)
@@ -2691,6 +2691,7 @@ options           UBSEC_RNDTEST   # enable rndtest support
 
 device         glxsb           # Geode LX Security Block
 device         padlock         # hardware crypto/RNG for VIA C3/C7/Eden
+device         aesni           # hardware crypto/RNG for AES-NI
 
 #
 # ACPI support using the Intel ACPI Component Architecture reference
index c133150..61286f1 100644 (file)
@@ -19,6 +19,6 @@ SRCS  += opt_param.h cryptodev_if.h bus_if.h device_if.h
 SRCS   += opt_ddb.h
 SRCS   += camellia.c camellia-api.c
 
-SUBDIR = rc4 via
+SUBDIR = aesni rc4 via
 
 .include <bsd.kmod.mk>
index a532b89..cefae29 100644 (file)
@@ -58,6 +58,10 @@ bf_enc.o                     optional        ipsec ipsec_esp         \
        dependency      "$S/crypto/blowfish/arch/i386/bf_enc.S $S/crypto/blowfish/arch/i386/bf_enc_586.S $S/crypto/blowfish/arch/i386/bf_enc_686.S"             \
        compile-with    "${CC} -c -I$S/crypto/blowfish/arch/i386 ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}"    \
        no-implicit-rule
+crypto/aesni/aesencdec_i386.S  optional        aesni
+crypto/aesni/aeskeys_i386.S    optional        aesni
+crypto/aesni/aesni.c           optional        aesni
+crypto/aesni/aesni_wrap.c      optional        aesni
 crypto/des/arch/i386/des_enc.S         optional        ipsec ipsec_esp
 crypto/des/des_ecb.c                   optional        netsmbcrypto
 crypto/des/arch/i386/des_enc.S         optional        netsmbcrypto
index 2b082ce..788f670 100644 (file)
@@ -52,6 +52,10 @@ emulation/linux/x86_64/linux32_sysvec.c      optional        compat_linux32
 
 # XXX use assembler versions of bf_enc and des_enc
 crypto/blowfish/bf_enc.c               optional        ipsec ipsec_esp
+crypto/aesni/aesencdec_x86_64.S        optional        aesni
+crypto/aesni/aeskeys_x86_64.S  optional        aesni
+crypto/aesni/aesni.c           optional        aesni
+crypto/aesni/aesni_wrap.c      optional        aesni
 crypto/des/des_enc.c                   optional        ipsec ipsec_esp
 crypto/des/des_ecb.c                   optional        netsmbcrypto
 crypto/des/des_enc.c                   optional        netsmbcrypto