| 1308 | } |
| 1309 | |
| 1310 | static int |
| 1311 | multi_session_testsuite_setup(void) |
| 1312 | { |
| 1313 | struct crypto_testsuite_params *ts_params = &testsuite_params; |
| 1314 | uint8_t dev_id = ts_params->valid_devs[0]; |
| 1315 | struct rte_cryptodev_info dev_info; |
| 1316 | const enum rte_crypto_cipher_algorithm ciphers[] = { |
| 1317 | RTE_CRYPTO_CIPHER_AES_CBC |
| 1318 | }; |
| 1319 | const enum rte_crypto_auth_algorithm auths[] = { |
| 1320 | RTE_CRYPTO_AUTH_SHA512_HMAC |
| 1321 | }; |
| 1322 | |
| 1323 | rte_cryptodev_info_get(dev_id, &dev_info); |
| 1324 | |
| 1325 | if (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO)) { |
| 1326 | RTE_LOG(INFO, USER1, "Feature flag requirements for Multi " |
| 1327 | "Session testsuite not met\n"); |
| 1328 | return TEST_SKIPPED; |
| 1329 | } |
| 1330 | |
| 1331 | if (check_cipher_capabilities_supported(ciphers, RTE_DIM(ciphers)) != 0 |
| 1332 | && check_auth_capabilities_supported(auths, |
| 1333 | RTE_DIM(auths)) != 0) { |
| 1334 | RTE_LOG(INFO, USER1, "Capability requirements for Multi " |
| 1335 | "Session testsuite not met\n"); |
| 1336 | return TEST_SKIPPED; |
| 1337 | } |
| 1338 | |
| 1339 | return 0; |
| 1340 | } |
| 1341 | |
| 1342 | static int |
| 1343 | negative_hmac_sha1_testsuite_setup(void) |
nothing calls this directly
no test coverage detected