* helper function to fill crypto_sym op for cipher+auth algorithms. * used by outb_cop_prepare(), see below. */
| 24 | * used by outb_cop_prepare(), see below. |
| 25 | */ |
| 26 | static inline void |
| 27 | sop_ciph_auth_prepare(struct rte_crypto_sym_op *sop, |
| 28 | const struct rte_ipsec_sa *sa, const union sym_op_data *icv, |
| 29 | uint32_t pofs, uint32_t plen) |
| 30 | { |
| 31 | sop->cipher.data.offset = sa->ctp.cipher.offset + pofs; |
| 32 | sop->cipher.data.length = sa->ctp.cipher.length + plen; |
| 33 | sop->auth.data.offset = sa->ctp.auth.offset + pofs; |
| 34 | sop->auth.data.length = sa->ctp.auth.length + plen; |
| 35 | sop->auth.digest.data = icv->va; |
| 36 | sop->auth.digest.phys_addr = icv->pa; |
| 37 | } |
| 38 | |
| 39 | /* |
| 40 | * helper function to fill crypto_sym op for cipher+auth algorithms. |