freebsd-skq/tests/sys
Conrad Meyer 0e33efe4e4 Import Blake2 algorithms (blake2b, blake2s) from libb2
The upstream repository is on github BLAKE2/libb2.  Files landed in
sys/contrib/libb2 are the unmodified upstream files, except for one
difference:  secure_zero_memory's contents have been replaced with
explicit_bzero() only because the previous implementation broke powerpc
link.  Preferential use of explicit_bzero() is in progress upstream, so
it is anticipated we will be able to drop this diff in the future.

sys/crypto/blake2 contains the source files needed to port libb2 to our
build system, a wrapped (limited) variant of the algorithm to match the API
of our auth_transform softcrypto abstraction, incorporation into the Open
Crypto Framework (OCF) cryptosoft(4) driver, as well as an x86 SSE/AVX
accelerated OCF driver, blake2(4).

Optimized variants of blake2 are compiled for a number of x86 machines
(anything from SSE2 to AVX + XOP).  On those machines, FPU context will need
to be explicitly saved before using blake2(4)-provided algorithms directly.
Use via cryptodev / OCF saves FPU state automatically, and use via the
auth_transform softcrypto abstraction does not use FPU.

The intent of the OCF driver is mostly to enable testing in userspace via
/dev/crypto.  ATF tests are added with published KAT test vectors to
validate correctness.

Reviewed by:	jhb, markj
Obtained from:	github BLAKE2/libb2
Differential Revision:	https://reviews.freebsd.org/D14662
2018-03-21 16:18:14 +00:00
..
acl Make test scripts under tests/... non-executable 2017-08-08 04:59:16 +00:00
aio Revert r318180 and re-enable AIO tests on md(4) by default. 2018-03-19 19:09:15 +00:00
cddl zfs test suite: move definition of DISK to the cfg file in zpool_get 2018-03-15 14:47:53 +00:00
fifo other: Fix several typos and minor errors 2017-12-27 03:23:58 +00:00
file DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
fs DIRDEPS_BUILD: Connect new directories. 2017-10-31 00:04:07 +00:00
geom gpart: append partition name to the underlying provider's physical path 2018-02-14 20:26:09 +00:00
kern Appease GCC 4.2 2018-03-21 04:44:19 +00:00
kqueue DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mac DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mqueue DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
net Add tests for lagg(4) and other cloned network interfaces 2018-02-23 18:18:42 +00:00
netinet DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
netipsec tests: ipsec: Don't load/unload aesni.ko in the test header 2017-12-03 18:35:07 +00:00
netpfil pf tests: Fix pft_ping.py to work with scapy 2.3.3 2018-01-09 19:02:42 +00:00
opencrypto Import Blake2 algorithms (blake2b, blake2s) from libb2 2018-03-21 16:18:14 +00:00
pjdfstest DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
posixshm DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
sys DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
vfs vfs_lookup: Allow PATH_MAX-1 symlinks 2017-11-17 19:25:39 +00:00
vm DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
Makefile Add the ZFS test suite 2018-02-23 16:31:00 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.inc Use MK_CHECK_USE_SANDBOX in tests/..., to deal with the fact that 2017-08-02 22:24:08 +00:00