| 6090 | } |
| 6091 | |
| 6092 | static int |
| 6093 | check_auth_capability(const struct crypto_testsuite_params *ts_params, |
| 6094 | const enum rte_crypto_auth_algorithm auth_algo, |
| 6095 | const uint16_t key_size, const uint16_t iv_size, |
| 6096 | const uint16_t tag_size) |
| 6097 | { |
| 6098 | struct rte_cryptodev_sym_capability_idx cap_idx; |
| 6099 | const struct rte_cryptodev_symmetric_capability *cap; |
| 6100 | |
| 6101 | /* Check if device supports the algorithm */ |
| 6102 | cap_idx.type = RTE_CRYPTO_SYM_XFORM_AUTH; |
| 6103 | cap_idx.algo.auth = auth_algo; |
| 6104 | |
| 6105 | cap = rte_cryptodev_sym_capability_get(ts_params->valid_devs[0], |
| 6106 | &cap_idx); |
| 6107 | |
| 6108 | if (cap == NULL) |
| 6109 | return -1; |
| 6110 | |
| 6111 | /* Check if device supports key size and IV size */ |
| 6112 | if (rte_cryptodev_sym_capability_check_auth(cap, key_size, |
| 6113 | tag_size, iv_size) < 0) { |
| 6114 | return -1; |
| 6115 | } |
| 6116 | |
| 6117 | return 0; |
| 6118 | } |
| 6119 | |
| 6120 | static int |
| 6121 | test_zuc_cipher(const struct wireless_test_data *tdata, |
no test coverage detected