]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a kernel crypto driver using assembly routines from OpenSSL.
authorjhb <jhb@FreeBSD.org>
Tue, 20 Oct 2020 17:50:18 +0000 (17:50 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 20 Oct 2020 17:50:18 +0000 (17:50 +0000)
commitd125b1bc1ee076a7e0ba8d4dfae264550474bffe
tree85995acc49eba2878d5c92913c0e66655cc7857f
parent3bcd75cd3c48bd67d61b6503b4902051de25b459
Add a kernel crypto driver using assembly routines from OpenSSL.

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
16 files changed:
share/man/man4/Makefile
share/man/man4/ossl.4 [new file with mode: 0644]
sys/amd64/conf/NOTES
sys/conf/files.amd64
sys/conf/files.i386
sys/conf/files.x86
sys/crypto/openssl/ossl.c [new file with mode: 0644]
sys/crypto/openssl/ossl.h [new file with mode: 0644]
sys/crypto/openssl/ossl_hash.h [new file with mode: 0644]
sys/crypto/openssl/ossl_sha.h [new file with mode: 0644]
sys/crypto/openssl/ossl_sha1.c [new file with mode: 0644]
sys/crypto/openssl/ossl_sha256.c [new file with mode: 0644]
sys/crypto/openssl/ossl_sha512.c [new file with mode: 0644]
sys/i386/conf/NOTES
sys/modules/Makefile
sys/modules/ossl/Makefile [new file with mode: 0644]