1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

cryptotest.py: Add a seatbelt that we're actually testing anything

Without nist-kat installed, cryptotest.py is a no-op.  Showing 'success' in
that case is unhelpful.

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2017-09-21 05:46:28 +00:00
parent 6b43e06029
commit 7abea82d17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323843

View File

@ -40,6 +40,7 @@
katdir = '/usr/local/share/nist-kat'
def katg(base, glob):
assert os.path.exists(os.path.join(katdir, base)), "Please 'pkg install nist-kat'"
return iglob(os.path.join(katdir, base, glob))
aesmodules = [ 'cryptosoft0', 'aesni0', 'ccr0' ]