test/crypto: add capability check
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 16 Apr 2020 17:24:23 +0000 (18:24 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Sun, 19 Apr 2020 20:34:26 +0000 (22:34 +0200)
commit93982b2132d26894573b7b93c8fc33a84046fa1b
treef36a94df04183321c124a2f9c13c0165644d270a
parent65f1eecaa0aae5af3d91376ab7f2f872a611a3b7
test/crypto: add capability check

Check if test case is supported by the crypto device,
including algorithm and some of its parameter, such as key length,
IV length, etc, using the capabilities API.
If it is not supported, test case is skipped.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Adam Dybkowski <adamx.dybkowski@intel.com>
Tested-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
app/test/test_cryptodev_blockcipher.c