Lines Matching refs:sess

48 	struct rte_cryptodev_asym_session *sess;  member
69 queue_ops_rsa_sign_verify(struct rte_cryptodev_asym_session *sess) in queue_ops_rsa_sign_verify() argument
102 rte_crypto_op_attach_asym_session(op, sess); in queue_ops_rsa_sign_verify()
160 queue_ops_rsa_enc_dec(struct rte_cryptodev_asym_session *sess) in queue_ops_rsa_enc_dec() argument
193 rte_crypto_op_attach_asym_session(op, sess); in queue_ops_rsa_enc_dec()
312 struct rte_cryptodev_asym_session *sess = NULL; in test_cryptodev_asym_op() local
454 sess = rte_cryptodev_asym_session_create(ts_params->session_mpool); in test_cryptodev_asym_op()
455 if (!sess) { in test_cryptodev_asym_op()
464 if (rte_cryptodev_asym_session_init(dev_id, sess, &xform_tc, in test_cryptodev_asym_op()
473 rte_crypto_op_attach_asym_session(op, sess); in test_cryptodev_asym_op()
514 if (sess != NULL) { in test_cryptodev_asym_op()
515 rte_cryptodev_asym_session_clear(dev_id, sess); in test_cryptodev_asym_op()
516 rte_cryptodev_asym_session_free(sess); in test_cryptodev_asym_op()
656 struct rte_cryptodev_asym_session *sess; in test_rsa_sign_verify() local
671 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_rsa_sign_verify()
673 if (!sess) { in test_rsa_sign_verify()
679 if (rte_cryptodev_asym_session_init(dev_id, sess, &rsa_xform, in test_rsa_sign_verify()
687 status = queue_ops_rsa_sign_verify(sess); in test_rsa_sign_verify()
691 rte_cryptodev_asym_session_clear(dev_id, sess); in test_rsa_sign_verify()
692 rte_cryptodev_asym_session_free(sess); in test_rsa_sign_verify()
705 struct rte_cryptodev_asym_session *sess; in test_rsa_enc_dec() local
720 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_rsa_enc_dec()
722 if (!sess) { in test_rsa_enc_dec()
727 if (rte_cryptodev_asym_session_init(dev_id, sess, &rsa_xform, in test_rsa_enc_dec()
735 status = queue_ops_rsa_enc_dec(sess); in test_rsa_enc_dec()
739 rte_cryptodev_asym_session_clear(dev_id, sess); in test_rsa_enc_dec()
740 rte_cryptodev_asym_session_free(sess); in test_rsa_enc_dec()
753 struct rte_cryptodev_asym_session *sess; in test_rsa_sign_verify_crt() local
767 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_rsa_sign_verify_crt()
769 if (!sess) { in test_rsa_sign_verify_crt()
776 if (rte_cryptodev_asym_session_init(dev_id, sess, &rsa_xform_crt, in test_rsa_sign_verify_crt()
783 status = queue_ops_rsa_sign_verify(sess); in test_rsa_sign_verify_crt()
787 rte_cryptodev_asym_session_clear(dev_id, sess); in test_rsa_sign_verify_crt()
788 rte_cryptodev_asym_session_free(sess); in test_rsa_sign_verify_crt()
801 struct rte_cryptodev_asym_session *sess; in test_rsa_enc_dec_crt() local
815 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_rsa_enc_dec_crt()
817 if (!sess) { in test_rsa_enc_dec_crt()
823 if (rte_cryptodev_asym_session_init(dev_id, sess, &rsa_xform_crt, in test_rsa_enc_dec_crt()
830 status = queue_ops_rsa_enc_dec(sess); in test_rsa_enc_dec_crt()
834 rte_cryptodev_asym_session_clear(dev_id, sess); in test_rsa_enc_dec_crt()
835 rte_cryptodev_asym_session_free(sess); in test_rsa_enc_dec_crt()
1102 struct rte_cryptodev_asym_session *sess = NULL; in test_dh_gen_shared_sec() local
1108 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_dh_gen_shared_sec()
1109 if (sess == NULL) { in test_dh_gen_shared_sec()
1138 if (rte_cryptodev_asym_session_init(dev_id, sess, &xform, in test_dh_gen_shared_sec()
1148 rte_crypto_op_attach_asym_session(op, sess); in test_dh_gen_shared_sec()
1177 if (sess != NULL) { in test_dh_gen_shared_sec()
1178 rte_cryptodev_asym_session_clear(dev_id, sess); in test_dh_gen_shared_sec()
1179 rte_cryptodev_asym_session_free(sess); in test_dh_gen_shared_sec()
1195 struct rte_cryptodev_asym_session *sess = NULL; in test_dh_gen_priv_key() local
1200 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_dh_gen_priv_key()
1201 if (sess == NULL) { in test_dh_gen_priv_key()
1226 if (rte_cryptodev_asym_session_init(dev_id, sess, &xform, in test_dh_gen_priv_key()
1236 rte_crypto_op_attach_asym_session(op, sess); in test_dh_gen_priv_key()
1266 if (sess != NULL) { in test_dh_gen_priv_key()
1267 rte_cryptodev_asym_session_clear(dev_id, sess); in test_dh_gen_priv_key()
1268 rte_cryptodev_asym_session_free(sess); in test_dh_gen_priv_key()
1286 struct rte_cryptodev_asym_session *sess = NULL; in test_dh_gen_pub_key() local
1291 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_dh_gen_pub_key()
1292 if (sess == NULL) { in test_dh_gen_pub_key()
1325 if (rte_cryptodev_asym_session_init(dev_id, sess, &xform, in test_dh_gen_pub_key()
1335 rte_crypto_op_attach_asym_session(op, sess); in test_dh_gen_pub_key()
1366 if (sess != NULL) { in test_dh_gen_pub_key()
1367 rte_cryptodev_asym_session_clear(dev_id, sess); in test_dh_gen_pub_key()
1368 rte_cryptodev_asym_session_free(sess); in test_dh_gen_pub_key()
1385 struct rte_cryptodev_asym_session *sess = NULL; in test_dh_gen_kp() local
1392 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_dh_gen_kp()
1393 if (sess == NULL) { in test_dh_gen_kp()
1424 if (rte_cryptodev_asym_session_init(dev_id, sess, &xform, in test_dh_gen_kp()
1434 rte_crypto_op_attach_asym_session(op, sess); in test_dh_gen_kp()
1463 if (sess != NULL) { in test_dh_gen_kp()
1464 rte_cryptodev_asym_session_clear(dev_id, sess); in test_dh_gen_kp()
1465 rte_cryptodev_asym_session_free(sess); in test_dh_gen_kp()
1482 struct rte_cryptodev_asym_session *sess = NULL; in test_mod_inv() local
1515 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_mod_inv()
1516 if (!sess) { in test_mod_inv()
1524 if (rte_cryptodev_asym_session_init(dev_id, sess, &modinv_xform, in test_mod_inv()
1552 rte_crypto_op_attach_asym_session(op, sess); in test_mod_inv()
1584 if (sess) { in test_mod_inv()
1585 rte_cryptodev_asym_session_clear(dev_id, sess); in test_mod_inv()
1586 rte_cryptodev_asym_session_free(sess); in test_mod_inv()
1606 struct rte_cryptodev_asym_session *sess = NULL; in test_mod_exp() local
1650 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_mod_exp()
1651 if (!sess) { in test_mod_exp()
1660 if (rte_cryptodev_asym_session_init(dev_id, sess, &modex_xform, in test_mod_exp()
1676 rte_crypto_op_attach_asym_session(op, sess); in test_mod_exp()
1707 if (sess != NULL) { in test_mod_exp()
1708 rte_cryptodev_asym_session_clear(dev_id, sess); in test_mod_exp()
1709 rte_cryptodev_asym_session_free(sess); in test_mod_exp()
1766 struct rte_cryptodev_asym_session *sess = NULL; in test_dsa_sign() local
1772 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_dsa_sign()
1773 if (sess == NULL) { in test_dsa_sign()
1801 if (rte_cryptodev_asym_session_init(dev_id, sess, &dsa_xform, in test_dsa_sign()
1811 rte_crypto_op_attach_asym_session(op, sess); in test_dsa_sign()
1883 if (sess != NULL) { in test_dsa_sign()
1884 rte_cryptodev_asym_session_clear(dev_id, sess); in test_dsa_sign()
1885 rte_cryptodev_asym_session_free(sess); in test_dsa_sign()
1908 struct rte_cryptodev_asym_session *sess = NULL; in test_ecdsa_sign_verify() local
1945 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_ecdsa_sign_verify()
1946 if (sess == NULL) { in test_ecdsa_sign_verify()
1971 if (rte_cryptodev_asym_session_init(dev_id, sess, &xform, in test_ecdsa_sign_verify()
1981 rte_crypto_op_attach_asym_session(op, sess); in test_ecdsa_sign_verify()
2083 if (sess != NULL) { in test_ecdsa_sign_verify()
2084 rte_cryptodev_asym_session_clear(dev_id, sess); in test_ecdsa_sign_verify()
2085 rte_cryptodev_asym_session_free(sess); in test_ecdsa_sign_verify()
2121 struct rte_cryptodev_asym_session *sess = NULL; in test_ecpm() local
2158 sess = rte_cryptodev_asym_session_create(sess_mpool); in test_ecpm()
2159 if (sess == NULL) { in test_ecpm()
2184 if (rte_cryptodev_asym_session_init(dev_id, sess, &xform, in test_ecpm()
2194 rte_crypto_op_attach_asym_session(op, sess); in test_ecpm()
2256 if (sess != NULL) { in test_ecpm()
2257 rte_cryptodev_asym_session_clear(dev_id, sess); in test_ecpm()
2258 rte_cryptodev_asym_session_free(sess); in test_ecpm()