Skip to contentSkip to conversation

examples/l2fwd-crypto : Wrong data length in case of AEAD ciphers

Bug 44 [email protected] 1 participant 1 message May 9, 2018

lore
Share & tools
lore
#0 lore raw

https://dpdk.org/tracker/show_bug.cgi?id=44

            Bug ID: 44
           Summary: examples/l2fwd-crypto : Wrong data length in case of
                    AEAD ciphers
           Product: DPDK
           Version: 18.05
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: normal
          Priority: Normal
         Component: examples
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

In l2fwd-crypto application, file main.c , the digest length is not getting decremented for AEAD ciphers.

Line 410:
if (cparams->do_hash && cparams->hash_verify)

                data_len -= cparams->digest_length;

I think this results in wrong values assignment in line 517
op->sym->aead.data.length = data_len;

and wrong digest data pointer assignment in line 524

op->sym->aead.digest.data = rte_pktmbuf_mtod(m,

                                uint8_t *) + ipdata_offset + data_len;
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.