MCPcopy Create free account
hub / github.com/F-Stack/f-stack / negative_aes_gmac_testsuite_setup

Function negative_aes_gmac_testsuite_setup

dpdk/app/test/test_cryptodev.c:1206–1233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1204}
1205
1206static int
1207negative_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
1235static int
1236mixed_cipher_hash_testsuite_setup(void)

Callers

nothing calls this directly

Calls 2

rte_cryptodev_info_getFunction · 0.85

Tested by

no test coverage detected