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

Function aes_gcm_auth_testsuite_setup

dpdk/app/test/test_cryptodev.c:964–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

962}
963
964static int
965aes_gcm_auth_testsuite_setup(void)
966{
967 struct crypto_testsuite_params *ts_params = &testsuite_params;
968 uint8_t dev_id = ts_params->valid_devs[0];
969 struct rte_cryptodev_info dev_info;
970 const enum rte_crypto_aead_algorithm aeads[] = {
971 RTE_CRYPTO_AEAD_AES_GCM
972 };
973
974 rte_cryptodev_info_get(dev_id, &dev_info);
975
976 if (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO)) {
977 RTE_LOG(INFO, USER1, "Feature flag requirements for AES GCM "
978 "testsuite not met\n");
979 return TEST_SKIPPED;
980 }
981
982 if (check_aead_capabilities_supported(aeads, RTE_DIM(aeads)) != 0) {
983 RTE_LOG(INFO, USER1, "Capability requirements for AES GCM "
984 "testsuite not met\n");
985 return TEST_SKIPPED;
986 }
987
988 return 0;
989}
990
991static int
992aes_gmac_auth_testsuite_setup(void)

Callers

nothing calls this directly

Calls 2

rte_cryptodev_info_getFunction · 0.85

Tested by

no test coverage detected