Honor the requested crid when running a test.
Otherwise, the kernel is free to choose an aribtrary crypto device rather than the requested device subverting tests that force the use of a specific device. MFC after: 1 week Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D10762
This commit is contained in:
parent
3fab177f90
commit
78dd739ff3
@ -173,10 +173,7 @@ def __init__(self, cipher=0, key=None, mac=0, mackey=None,
|
||||
|
||||
if not cipher and not mac:
|
||||
raise ValueError('one of cipher or mac MUST be specified.')
|
||||
ses.crid = CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_HARDWARE
|
||||
#ses.crid = CRYPTOCAP_F_HARDWARE
|
||||
#ses.crid = CRYPTOCAP_F_SOFTWARE
|
||||
#ses.crid = 0
|
||||
ses.crid = crid
|
||||
#print `ses`
|
||||
s = array.array('B', ses.pack_hdr())
|
||||
#print `s`
|
||||
|
Loading…
Reference in New Issue
Block a user