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

Function check_auth_capability

dpdk/app/test/test_cryptodev.c:6092–6118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6090}
6091
6092static int
6093check_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
6120static int
6121test_zuc_cipher(const struct wireless_test_data *tdata,

Callers 4

test_zuc_cipher_authFunction · 0.85
test_zuc_authenticationFunction · 0.85
test_zuc_auth_cipherFunction · 0.85
test_zuc_auth_cipher_sglFunction · 0.85

Tested by

no test coverage detected