crypto/kasumi: do not append digest
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 5 Sep 2017 02:20:03 +0000 (03:20 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 12 Oct 2017 14:10:51 +0000 (15:10 +0100)
commitc4e156d6b5b38b1233629cd97a8c8f1670f1b1f7
tree500c8a5e4223d4033ae6c51da524456a72129de8
parentf296593ff68873393fbe58f53acec9367f656c47
crypto/kasumi: do not append digest

When performing an authentication verification,
the PMD was using memory at the end of the input buffer,
to store temporarily the digest.
This operation requires the buffer to have enough
tailroom unnecessarily.
Instead, memory is allocated for each queue pair, to store
temporarily the digest generated by the driver, so it can
be compared with the one provided in the crypto operation,
without needing to touch the input buffer.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
drivers/crypto/kasumi/rte_kasumi_pmd.c
drivers/crypto/kasumi/rte_kasumi_pmd_private.h