]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a kernel crypto driver using assembly routines from OpenSSL.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 20 Oct 2020 17:50:18 +0000 (17:50 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 20 Oct 2020 17:50:18 +0000 (17:50 +0000)
commitba610be90a7cb6d851e0e0e6d7612769352a3c0c
tree85995acc49eba2878d5c92913c0e66655cc7857f
parent91bc73618deae3a0d4efc467d94883c7e9fdd088
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]