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

Function aes_ccm_auth_testsuite_setup

dpdk/app/test/test_cryptodev.c:935–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933#endif
934
935static int
936aes_ccm_auth_testsuite_setup(void)
937{
938 struct crypto_testsuite_params *ts_params = &testsuite_params;
939 uint8_t dev_id = ts_params->valid_devs[0];
940 struct rte_cryptodev_info dev_info;
941 const enum rte_crypto_aead_algorithm aeads[] = {
942 RTE_CRYPTO_AEAD_AES_CCM
943 };
944
945 rte_cryptodev_info_get(dev_id, &dev_info);
946
947 if (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO) ||
948 ((global_api_test_type == CRYPTODEV_RAW_API_TEST) &&
949 !(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYM_RAW_DP))) {
950 RTE_LOG(INFO, USER1, "Feature flag requirements for AES CCM "
951 "testsuite not met\n");
952 return TEST_SKIPPED;
953 }
954
955 if (check_aead_capabilities_supported(aeads, RTE_DIM(aeads)) != 0) {
956 RTE_LOG(INFO, USER1, "Capability requirements for AES CCM "
957 "testsuite not met\n");
958 return TEST_SKIPPED;
959 }
960
961 return 0;
962}
963
964static int
965aes_gcm_auth_testsuite_setup(void)

Callers

nothing calls this directly

Calls 2

rte_cryptodev_info_getFunction · 0.85

Tested by

no test coverage detected