Lines Matching defs:cipher_xform
1139 struct rte_crypto_cipher_xform *cipher_xform = &xform->cipher;
1143 cipher_xform->algo = RTE_CRYPTO_CIPHER_AES_CBC;
1146 cipher_xform->algo = RTE_CRYPTO_CIPHER_AES_CTR;
1148 cipher_xform->algo = RTE_CRYPTO_CIPHER_AES_ECB;
1150 cipher_xform->op = (info.op == FIPS_TEST_ENC_AUTH_GEN) ?
1153 cipher_xform->key.data = vec.cipher_auth.key.val;
1154 cipher_xform->key.length = vec.cipher_auth.key.len;
1155 if (cipher_xform->algo == RTE_CRYPTO_CIPHER_AES_CBC ||
1156 cipher_xform->algo == RTE_CRYPTO_CIPHER_AES_CTR) {
1157 cipher_xform->iv.length = vec.iv.len;
1158 cipher_xform->iv.offset = IV_OFF;
1160 cipher_xform->iv.length = 0;
1161 cipher_xform->iv.offset = 0;
1163 cap_idx.algo.cipher = cipher_xform->algo;
1174 cipher_xform->key.length,
1175 cipher_xform->iv.length) != 0) {
1177 info.device_name, cipher_xform->key.length,
1178 cipher_xform->iv.length);
1190 struct rte_crypto_cipher_xform *cipher_xform = &xform->cipher;
1195 cipher_xform->algo = RTE_CRYPTO_CIPHER_3DES_CBC;
1197 cipher_xform->algo = RTE_CRYPTO_CIPHER_3DES_ECB;
1198 cipher_xform->op = (info.op == FIPS_TEST_ENC_AUTH_GEN) ?
1201 cipher_xform->key.data = vec.cipher_auth.key.val;
1202 cipher_xform->key.length = vec.cipher_auth.key.len;
1204 if (cipher_xform->algo == RTE_CRYPTO_CIPHER_3DES_CBC) {
1205 cipher_xform->iv.length = vec.iv.len;
1206 cipher_xform->iv.offset = IV_OFF;
1208 cipher_xform->iv.length = 0;
1209 cipher_xform->iv.offset = 0;
1211 cap_idx.algo.cipher = cipher_xform->algo;
1222 cipher_xform->key.length,
1223 cipher_xform->iv.length) != 0) {
1225 info.device_name, cipher_xform->key.length,
1226 cipher_xform->iv.length);
1485 struct rte_crypto_cipher_xform *cipher_xform = &xform->cipher;
1489 cipher_xform->algo = RTE_CRYPTO_CIPHER_AES_XTS;
1490 cipher_xform->op = (info.op == FIPS_TEST_ENC_AUTH_GEN) ?
1493 cipher_xform->key.data = vec.cipher_auth.key.val;
1494 cipher_xform->key.length = vec.cipher_auth.key.len;
1495 cipher_xform->iv.length = vec.iv.len;
1496 cipher_xform->iv.offset = IV_OFF;
1509 cipher_xform->key.length,
1510 cipher_xform->iv.length) != 0) {
1512 info.device_name, cipher_xform->key.length,
1513 cipher_xform->iv.length);