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

Function negative_aes_gcm_testsuite_setup

dpdk/app/test/test_cryptodev.c:1177–1204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1175}
1176
1177static int
1178negative_aes_gcm_testsuite_setup(void)
1179{
1180 struct crypto_testsuite_params *ts_params = &testsuite_params;
1181 uint8_t dev_id = ts_params->valid_devs[0];
1182 struct rte_cryptodev_info dev_info;
1183 const enum rte_crypto_aead_algorithm aeads[] = {
1184 RTE_CRYPTO_AEAD_AES_GCM
1185 };
1186
1187 rte_cryptodev_info_get(dev_id, &dev_info);
1188
1189 if (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO) ||
1190 ((global_api_test_type == CRYPTODEV_RAW_API_TEST) &&
1191 !(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYM_RAW_DP))) {
1192 RTE_LOG(INFO, USER1, "Feature flag requirements for Negative "
1193 "AES GCM testsuite not met\n");
1194 return TEST_SKIPPED;
1195 }
1196
1197 if (check_aead_capabilities_supported(aeads, RTE_DIM(aeads)) != 0) {
1198 RTE_LOG(INFO, USER1, "Capability requirements for Negative "
1199 "AES GCM testsuite not met\n");
1200 return TEST_SKIPPED;
1201 }
1202
1203 return 0;
1204}
1205
1206static int
1207negative_aes_gmac_testsuite_setup(void)

Callers

nothing calls this directly

Calls 2

rte_cryptodev_info_getFunction · 0.85

Tested by

no test coverage detected