MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sop_aead_prepare

Function sop_aead_prepare

dpdk/lib/ipsec/esp_outb.c:43–54  ·  view source on GitHub ↗

* helper function to fill crypto_sym op for cipher+auth algorithms. * used by outb_cop_prepare(), see below. */

Source from the content-addressed store, hash-verified

41 * used by outb_cop_prepare(), see below.
42 */
43static inline void
44sop_aead_prepare(struct rte_crypto_sym_op *sop,
45 const struct rte_ipsec_sa *sa, const union sym_op_data *icv,
46 uint32_t pofs, uint32_t plen)
47{
48 sop->aead.data.offset = sa->ctp.cipher.offset + pofs;
49 sop->aead.data.length = sa->ctp.cipher.length + plen;
50 sop->aead.digest.data = icv->va;
51 sop->aead.digest.phys_addr = icv->pa;
52 sop->aead.aad.data = icv->va + sa->icv_len;
53 sop->aead.aad.phys_addr = icv->pa + sa->icv_len;
54}
55
56/*
57 * setup crypto op and crypto sym op for ESP outbound packet.

Callers 1

outb_cop_prepareFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected