-
Notifications
You must be signed in to change notification settings - Fork 18
Description
make check of libica fails if I take away crypto cards via /sys/bus/ap/apmask
Normal setup
$ lszcrypt
CARD.DOMAIN TYPE MODE STATUS REQUESTS
03 CEX5C CCA-Coproc online 854
03.0008 CEX5C CCA-Coproc online 854
06 CEX5C CCA-Coproc online 324
06.0008 CEX5C CCA-Coproc online 324
07 CEX5P EP11-Coproc online 0
07.0008 CEX5P EP11-Coproc online 0
normal make check:
PASS: fips_test
PASS: icastats_test
PASS: get_functionlist_test
PASS: get_version_test
PASS: rng_test
PASS: drbg_test
[...]
When I now disable all adapters from zcrypt
sudo bash -c "echo 0 > /sys/bus/ap/apmask"
icastats_test fails:
cat test/icastats_test.log
icastats RSA-ME test FAILED!
FAIL icastats_test (exit status: 1)
If the system has no crypto cards, then make check also suceeds.
So it seems that the icastat test tries to detect if there is RSA-ME support available, but it fails to detect that this support is actually not available.