mirror of
https://github.com/opnsense/src.git
synced 2026-04-04 08:55:18 -04:00
Currently, this supports SHA1 and SHA2-{224,256,384,512} both as plain
hashes and in HMAC mode on both amd64 and i386. It uses the SHA
intrinsics when present similar to aesni(4), but uses SSE/AVX
instructions when they are not.
Note that some files from OpenSSL that normally wrap the assembly
routines have been adapted to export methods usable by 'struct
auth_xform' as is used by existing software crypto routines.
Reviewed by: gallatin, jkim, delphij, gnn
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D26821
26 lines
403 B
Makefile
26 lines
403 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/crypto/openssl
|
|
.PATH: ${SRCTOP}/sys/crypto/openssl/${MACHINE_CPUARCH}
|
|
|
|
KMOD= ossl
|
|
SRCS= bus_if.h \
|
|
cryptodev_if.h \
|
|
device_if.h \
|
|
ossl.c \
|
|
ossl_sha1.c \
|
|
ossl_sha256.c \
|
|
ossl_sha512.c \
|
|
${SRCS.${MACHINE_CPUARCH}}
|
|
|
|
SRCS.amd64= \
|
|
sha1-x86_64.S \
|
|
sha256-x86_64.S \
|
|
sha512-x86_64.S
|
|
|
|
SRCS.i386= \
|
|
sha1-586.S \
|
|
sha256-586.S \
|
|
sha512-586.S
|
|
|
|
.include <bsd.kmod.mk>
|