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

Function aes_gmac_auth_testsuite_setup

dpdk/app/test/test_cryptodev.c:991–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989}
990
991static int
992aes_gmac_auth_testsuite_setup(void)
993{
994 struct crypto_testsuite_params *ts_params = &testsuite_params;
995 uint8_t dev_id = ts_params->valid_devs[0];
996 struct rte_cryptodev_info dev_info;
997 const enum rte_crypto_auth_algorithm auths[] = {
998 RTE_CRYPTO_AUTH_AES_GMAC
999 };
1000
1001 rte_cryptodev_info_get(dev_id, &dev_info);
1002
1003 if (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO) ||
1004 ((global_api_test_type == CRYPTODEV_RAW_API_TEST) &&
1005 !(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYM_RAW_DP))) {
1006 RTE_LOG(INFO, USER1, "Feature flag requirements for AES GMAC "
1007 "testsuite not met\n");
1008 return TEST_SKIPPED;
1009 }
1010
1011 if (check_auth_capabilities_supported(auths, RTE_DIM(auths)) != 0) {
1012 RTE_LOG(INFO, USER1, "Capability requirements for AES GMAC "
1013 "testsuite not met\n");
1014 return TEST_SKIPPED;
1015 }
1016
1017 return 0;
1018}
1019
1020static int
1021chacha20_poly1305_testsuite_setup(void)

Callers

nothing calls this directly

Calls 2

rte_cryptodev_info_getFunction · 0.85

Tested by

no test coverage detected