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:
parent
6b43e06029
commit
7abea82d17
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323843
@ -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' ]
|
||||
|
Loading…
Reference in New Issue
Block a user