mirror of
https://git.proxmox.com/git/mirror_zfs
synced 2025-04-29 23:03:35 +00:00
![]() This commit adds tests that ensure that the ICP crypto_encrypt() and crypto_decrypt() produce the correct results for all implementations available on this platform. The actual ZTS scripts are simple drivers for the crypto_test program in it's "correctness" mode. This mode takes a file full of test vectors (inputs and expected outputs), runs them, and checks that the results are expected. It will run the tests for each implementation of the algorithm provided by the ICP. The test vectors are taken from Project Wycheproof, which provides a huge number of tests, including exercising many edge cases and common implementation mistakes. These tests are provided are JSON files, so a program is included here to convert them into a simpler line-based format for crypto_test to consume. crypto_test also has a "performance" mode, which will run simple benchmarks against all implementations provded by the ICP and output them for comparison. This is not used by ZTS, but is available to assist with development of new implementations of the underlying primitives. Thanks-to: Joel Low <joel@joelsplace.sg> Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Reviewed-by: Attila Fülöp <attila@fueloep.org> |
||
---|---|---|
.. | ||
zfs-images@3331601f6d | ||
.gitignore | ||
commitcheck.sh | ||
common.sh.in | ||
convert_wycheproof.pl | ||
cstyle.pl | ||
dkms.mkconf | ||
dkms.postbuild | ||
kmodtool | ||
make_gitrev.sh | ||
Makefile.am | ||
man-dates.sh | ||
mancheck.sh | ||
paxcheck.sh | ||
update_authors.pl | ||
zfs2zol-patch.sed | ||
zfs_prepare_disk | ||
zfs-helpers.sh | ||
zfs-tests-color.sh | ||
zfs-tests.sh | ||
zfs.sh | ||
zimport.sh | ||
zloop.sh | ||
zol2zfs-patch.sed |