Lines Matching refs:ctp
257 sa->ctp.cipher.offset = sizeof(struct rte_esp_hdr) + sa->iv_len; in esp_inb_init()
258 sa->ctp.cipher.length = sa->icv_len + sa->ctp.cipher.offset; in esp_inb_init()
268 sa->ctp.auth.raw = sa->ctp.cipher.raw; in esp_inb_init()
271 sa->ctp.auth.offset = 0; in esp_inb_init()
272 sa->ctp.auth.length = sa->icv_len - sa->sqh_len; in esp_inb_init()
277 sa->cofs.ofs.cipher.head = sa->ctp.cipher.offset - sa->ctp.auth.offset; in esp_inb_init()
313 sa->ctp.cipher.offset = hlen + sizeof(struct rte_esp_hdr) + in esp_outb_init()
315 sa->ctp.cipher.length = 0; in esp_outb_init()
319 sa->ctp.cipher.offset = hlen + sizeof(struct rte_esp_hdr); in esp_outb_init()
320 sa->ctp.cipher.length = sa->iv_len; in esp_outb_init()
323 sa->ctp.cipher.offset = 0; in esp_outb_init()
324 sa->ctp.cipher.length = 0; in esp_outb_init()
336 sa->ctp.auth.raw = sa->ctp.cipher.raw; in esp_outb_init()
339 sa->ctp.auth.offset = hlen; in esp_outb_init()
340 sa->ctp.auth.length = sizeof(struct rte_esp_hdr) + in esp_outb_init()
345 sa->cofs.ofs.cipher.head = sa->ctp.cipher.offset - sa->ctp.auth.offset; in esp_outb_init()
346 sa->cofs.ofs.cipher.tail = (sa->ctp.auth.offset + sa->ctp.auth.length) - in esp_outb_init()
347 (sa->ctp.cipher.offset + sa->ctp.cipher.length); in esp_outb_init()