| 1204 | } |
| 1205 | |
| 1206 | static int |
| 1207 | negative_aes_gmac_testsuite_setup(void) |
| 1208 | { |
| 1209 | struct crypto_testsuite_params *ts_params = &testsuite_params; |
| 1210 | uint8_t dev_id = ts_params->valid_devs[0]; |
| 1211 | struct rte_cryptodev_info dev_info; |
| 1212 | const enum rte_crypto_auth_algorithm auths[] = { |
| 1213 | RTE_CRYPTO_AUTH_AES_GMAC |
| 1214 | }; |
| 1215 | |
| 1216 | rte_cryptodev_info_get(dev_id, &dev_info); |
| 1217 | |
| 1218 | if (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO) || |
| 1219 | ((global_api_test_type == CRYPTODEV_RAW_API_TEST) && |
| 1220 | !(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYM_RAW_DP))) { |
| 1221 | RTE_LOG(INFO, USER1, "Feature flag requirements for Negative " |
| 1222 | "AES GMAC testsuite not met\n"); |
| 1223 | return TEST_SKIPPED; |
| 1224 | } |
| 1225 | |
| 1226 | if (check_auth_capabilities_supported(auths, RTE_DIM(auths)) != 0) { |
| 1227 | RTE_LOG(INFO, USER1, "Capability requirements for Negative " |
| 1228 | "AES GMAC testsuite not met\n"); |
| 1229 | return TEST_SKIPPED; |
| 1230 | } |
| 1231 | |
| 1232 | return 0; |
| 1233 | } |
| 1234 | |
| 1235 | static int |
| 1236 | mixed_cipher_hash_testsuite_setup(void) |
nothing calls this directly
no test coverage detected