| 933 | #endif |
| 934 | |
| 935 | static int |
| 936 | aes_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 | |
| 964 | static int |
| 965 | aes_gcm_auth_testsuite_setup(void) |
nothing calls this directly
no test coverage detected