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