Searched refs:sess (Results 1 - 25 of 28) sorted by relevance

12

/deb_dpdk/drivers/crypto/openssl/
H A Drte_openssl_pmd.c278 openssl_set_session_cipher_parameters(struct openssl_session *sess, argument
282 sess->cipher.direction = xform->cipher.op;
284 sess->cipher.key.length = xform->cipher.key.length;
292 sess->cipher.mode = OPENSSL_CIPHER_LIB;
293 sess->cipher.algo = xform->cipher.algo;
294 sess->cipher.ctx = EVP_CIPHER_CTX_new();
296 if (get_cipher_algo(sess->cipher.algo, sess->cipher.key.length,
297 &sess->cipher.evp_algo) != 0)
300 get_cipher_key(xform->cipher.key.data, sess
325 openssl_set_session_auth_parameters(struct openssl_session *sess, const struct rte_crypto_sym_xform *xform) argument
379 openssl_set_session_parameters(struct openssl_session *sess, const struct rte_crypto_sym_xform *xform) argument
428 openssl_reset_session(struct openssl_session *sess) argument
449 struct openssl_session *sess = NULL; local
721 process_openssl_combined_op(struct rte_crypto_op *op, struct openssl_session *sess, struct rte_mbuf *mbuf_src, struct rte_mbuf *mbuf_dst) argument
773 process_openssl_cipher_op(struct rte_crypto_op *op, struct openssl_session *sess, struct rte_mbuf *mbuf_src, struct rte_mbuf *mbuf_dst) argument
810 process_openssl_auth_op(struct rte_crypto_op *op, struct openssl_session *sess, struct rte_mbuf *mbuf_src, struct rte_mbuf *mbuf_dst) argument
864 process_op(const struct openssl_qp *qp, struct rte_crypto_op *op, struct openssl_session *sess) argument
929 struct openssl_session *sess; local
[all...]
H A Drte_openssl_pmd_private.h164 openssl_set_session_parameters(struct openssl_session *sess,
169 openssl_reset_session(struct openssl_session *sess);
H A Drte_openssl_pmd_ops.c655 struct rte_crypto_sym_xform *xform, void *sess)
657 if (unlikely(sess == NULL)) {
663 sess, xform) != 0) {
668 return sess;
674 openssl_pmd_session_clear(struct rte_cryptodev *dev __rte_unused, void *sess) argument
680 if (sess) {
681 openssl_reset_session(sess);
682 memset(sess, 0, sizeof(struct openssl_session));
654 openssl_pmd_session_configure(struct rte_cryptodev *dev __rte_unused, struct rte_crypto_sym_xform *xform, void *sess) argument
/deb_dpdk/drivers/crypto/aesni_mb/
H A Drte_aesni_mb_pmd.c135 struct aesni_mb_session *sess,
147 sess->auth.algo = AES_XCBC;
149 sess->auth.xcbc.k1_expanded,
150 sess->auth.xcbc.k2, sess->auth.xcbc.k3);
156 sess->auth.algo = MD5;
160 sess->auth.algo = SHA1;
164 sess->auth.algo = SHA_224;
168 sess->auth.algo = SHA_256;
172 sess
134 aesni_mb_set_session_auth_parameters(const struct aesni_mb_ops *mb_ops, struct aesni_mb_session *sess, const struct rte_crypto_sym_xform *xform) argument
196 aesni_mb_set_session_cipher_parameters(const struct aesni_mb_ops *mb_ops, struct aesni_mb_session *sess, const struct rte_crypto_sym_xform *xform) argument
262 aesni_mb_set_session_parameters(const struct aesni_mb_ops *mb_ops, struct aesni_mb_session *sess, const struct rte_crypto_sym_xform *xform) argument
303 struct aesni_mb_session *sess = NULL; local
525 struct aesni_mb_session *sess; local
[all...]
H A Drte_aesni_mb_pmd_ops.c447 struct rte_crypto_sym_xform *xform, void *sess)
451 if (unlikely(sess == NULL)) {
457 sess, xform) != 0) {
462 return sess;
467 aesni_mb_pmd_session_clear(struct rte_cryptodev *dev __rte_unused, void *sess) argument
473 if (sess)
474 memset(sess, 0, sizeof(struct aesni_mb_session));
446 aesni_mb_pmd_session_configure(struct rte_cryptodev *dev, struct rte_crypto_sym_xform *xform, void *sess) argument
H A Drte_aesni_mb_pmd_private.h220 struct aesni_mb_session *sess,
/deb_dpdk/drivers/crypto/null/
H A Dnull_crypto_pmd.c65 struct null_crypto_session *sess __rte_unused,
100 struct null_crypto_session *sess __rte_unused)
115 struct null_crypto_session *sess; local
122 sess = (struct null_crypto_session *)op->session->_private;
129 sess = (struct null_crypto_session *)c_sess->_private;
131 if (null_crypto_set_session_parameters(sess, op->xform) != 0)
135 return sess;
143 struct null_crypto_session *sess; local
149 sess = get_session(qp, ops[i]->sym);
150 if (unlikely(sess
[all...]
H A Dnull_crypto_pmd_ops.c306 struct rte_crypto_sym_xform *xform, void *sess)
310 if (unlikely(sess == NULL)) {
315 (struct null_crypto_session *)sess, xform);
321 return sess;
327 void *sess)
329 if (sess)
330 memset(sess, 0, sizeof(struct null_crypto_session));
305 null_crypto_pmd_session_configure(struct rte_cryptodev *dev __rte_unused, struct rte_crypto_sym_xform *xform, void *sess) argument
326 null_crypto_pmd_session_clear(struct rte_cryptodev *dev __rte_unused, void *sess) argument
H A Dnull_crypto_pmd_private.h87 null_crypto_set_session_parameters(struct null_crypto_session *sess,
/deb_dpdk/drivers/crypto/aesni_gcm/
H A Daesni_gcm_pmd.c116 struct aesni_gcm_session *sess,
127 sess->op = AESNI_GCM_OP_AUTHENTICATED_ENCRYPTION;
133 sess->op = AESNI_GCM_OP_AUTHENTICATED_DECRYPTION;
149 if (sess->op == AESNI_GCM_OP_AUTHENTICATED_ENCRYPTION &&
155 } else if (sess->op == AESNI_GCM_OP_AUTHENTICATED_DECRYPTION &&
165 sess->gdata.expanded_keys);
173 (*gcm_ops->gcm.precomp)(&sess->gdata, hsubkey);
182 struct aesni_gcm_session *sess = NULL; local
187 return sess;
189 sess
115 aesni_gcm_set_session_parameters(const struct aesni_gcm_ops *gcm_ops, struct aesni_gcm_session *sess, const struct rte_crypto_sym_xform *xform) argument
366 struct aesni_gcm_session *sess; local
[all...]
H A Daesni_gcm_pmd_ops.c295 struct rte_crypto_sym_xform *xform, void *sess)
299 if (unlikely(sess == NULL)) {
305 sess, xform) != 0) {
310 return sess;
315 aesni_gcm_pmd_session_clear(struct rte_cryptodev *dev __rte_unused, void *sess) argument
317 if (sess)
318 memset(sess, 0, sizeof(struct aesni_gcm_session));
294 aesni_gcm_pmd_session_configure(struct rte_cryptodev *dev, struct rte_crypto_sym_xform *xform, void *sess) argument
H A Daesni_gcm_pmd_private.h102 * @param sess aesni gcm session structure
111 struct aesni_gcm_session *sess,
/deb_dpdk/drivers/crypto/kasumi/
H A Drte_kasumi_pmd_ops.c295 struct rte_crypto_sym_xform *xform, void *sess)
297 if (unlikely(sess == NULL)) {
302 if (kasumi_set_session_parameters(sess, xform) != 0) {
307 return sess;
312 kasumi_pmd_session_clear(struct rte_cryptodev *dev __rte_unused, void *sess) argument
318 if (sess)
319 memset(sess, 0, sizeof(struct kasumi_session));
294 kasumi_pmd_session_configure(struct rte_cryptodev *dev __rte_unused, struct rte_crypto_sym_xform *xform, void *sess) argument
H A Drte_kasumi_pmd_private.h99 kasumi_set_session_parameters(struct kasumi_session *sess,
H A Drte_kasumi_pmd.c106 kasumi_set_session_parameters(struct kasumi_session *sess, argument
141 &sess->pKeySched_cipher);
148 sess->auth_op = auth_xform->auth.op;
151 &sess->pKeySched_hash);
155 sess->op = mode;
164 struct kasumi_session *sess; local
171 sess = (struct kasumi_session *)op->sym->session->_private;
178 sess = (struct kasumi_session *)c_sess->_private;
180 if (unlikely(kasumi_set_session_parameters(sess,
185 return sess;
[all...]
/deb_dpdk/drivers/crypto/snow3g/
H A Drte_snow3g_pmd_ops.c293 struct rte_crypto_sym_xform *xform, void *sess)
295 if (unlikely(sess == NULL)) {
300 if (snow3g_set_session_parameters(sess, xform) != 0) {
305 return sess;
310 snow3g_pmd_session_clear(struct rte_cryptodev *dev __rte_unused, void *sess) argument
316 if (sess)
317 memset(sess, 0, sizeof(struct snow3g_session));
292 snow3g_pmd_session_configure(struct rte_cryptodev *dev __rte_unused, struct rte_crypto_sym_xform *xform, void *sess) argument
H A Drte_snow3g_pmd_private.h98 snow3g_set_session_parameters(struct snow3g_session *sess,
H A Drte_snow3g_pmd.c105 snow3g_set_session_parameters(struct snow3g_session *sess, argument
141 &sess->pKeySched_cipher);
148 sess->auth_op = auth_xform->auth.op;
151 &sess->pKeySched_hash);
155 sess->op = mode;
164 struct snow3g_session *sess; local
171 sess = (struct snow3g_session *)op->sym->session->_private;
178 sess = (struct snow3g_session *)c_sess->_private;
180 if (unlikely(snow3g_set_session_parameters(sess,
185 return sess;
[all...]
/deb_dpdk/drivers/crypto/zuc/
H A Drte_zuc_pmd_ops.c293 struct rte_crypto_sym_xform *xform, void *sess)
295 if (unlikely(sess == NULL)) {
300 if (zuc_set_session_parameters(sess, xform) != 0) {
305 return sess;
310 zuc_pmd_session_clear(struct rte_cryptodev *dev __rte_unused, void *sess) argument
316 if (sess)
317 memset(sess, 0, sizeof(struct zuc_session));
292 zuc_pmd_session_configure(struct rte_cryptodev *dev __rte_unused, struct rte_crypto_sym_xform *xform, void *sess) argument
H A Drte_zuc_pmd.c104 zuc_set_session_parameters(struct zuc_session *sess, argument
139 memcpy(sess->pKey_cipher, cipher_xform->cipher.key.data,
147 sess->auth_op = auth_xform->auth.op;
149 memcpy(sess->pKey_hash, auth_xform->auth.key.data,
154 sess->op = mode;
163 struct zuc_session *sess; local
170 sess = (struct zuc_session *)op->sym->session->_private;
177 sess = (struct zuc_session *)c_sess->_private;
179 if (unlikely(zuc_set_session_parameters(sess,
184 return sess;
[all...]
H A Drte_zuc_pmd_private.h99 zuc_set_session_parameters(struct zuc_session *sess,
/deb_dpdk/lib/librte_cryptodev/
H A Drte_cryptodev.c995 struct rte_cryptodev_sym_session *sess = _sess; local
998 memset(sess, 0, mp->elt_size);
1000 sess->dev_id = dev->data->dev_id;
1001 sess->dev_type = dev->dev_type;
1002 sess->mp = mp;
1005 (*dev->dev_ops->session_initialize)(mp, sess);
1075 struct rte_cryptodev_sym_session *sess; local
1091 sess = (struct rte_cryptodev_sym_session *)_sess;
1094 if (dev->dev_ops->session_configure(dev, xform, sess->_private) ==
1100 rte_mempool_put(sess
1108 rte_cryptodev_sym_session_free(uint8_t dev_id, struct rte_cryptodev_sym_session *sess) argument
[all...]
H A Drte_crypto_sym.h675 * @param sess cryptodev session
679 struct rte_cryptodev_sym_session *sess)
681 sym_op->session = sess;
678 __rte_crypto_sym_op_attach_sym_session(struct rte_crypto_sym_op *sym_op, struct rte_cryptodev_sym_session *sess) argument
H A Drte_crypto.h402 * @param sess cryptodev session
406 struct rte_cryptodev_sym_session *sess)
411 return __rte_crypto_sym_op_attach_sym_session(op->sym, sess);
405 rte_crypto_op_attach_sym_session(struct rte_crypto_op *op, struct rte_cryptodev_sym_session *sess) argument
/deb_dpdk/app/test/
H A Dtest_cryptodev_blockcipher.c65 struct rte_cryptodev_sym_session *sess = NULL; local
331 sess = rte_cryptodev_sym_session_create(dev_id,
333 if (!sess) {
342 rte_crypto_op_attach_sym_session(op, sess);
437 if (sess)
438 rte_cryptodev_sym_session_free(dev_id, sess);

Completed in 19 milliseconds

12