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

Function sop_ciph_auth_prepare

dpdk/lib/ipsec/esp_inb.c:25–36  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

inb_cop_prepareFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected