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

Function sop_ciph_auth_prepare

dpdk/lib/ipsec/esp_outb.c:26–37  ·  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

24 * used by outb_cop_prepare(), see below.
25 */
26static inline void
27sop_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.

Callers 1

outb_cop_prepareFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected