[dpdk-dev] [Bug 44] examples/l2fwd-crypto : Wrong data length in case of AEAD ciphers

bugzilla at dpdk.org bugzilla at dpdk.org
Wed May 9 14:43:52 CEST 2018


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: dev at dpdk.org
          Reporter: ankur.dwivedi at cavium.com
  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;

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the dev mailing list