security: support PDCP short MAC-I
authorHemant Agrawal <hemant.agrawal@nxp.com>
Wed, 8 Sep 2021 12:51:24 +0000 (18:21 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 8 Sep 2021 14:54:37 +0000 (16:54 +0200)
commit864c1a40d75cd63b01bfdd65efaf913f23668347
tree0e1e2b480c246fe7af927e17fbab1bcd65e8f426
parent45e019608f31c361cd673150db75ec3d36ba2cef
security: support PDCP short MAC-I

This patch add support to handle PDCP short MAC-I domain
along with standard control and data domains as it has to
be treaty as special case with PDCP protocol offload support.

ShortMAC-I is the 16 least significant bits of calculated MAC-I. Usually
when a RRC message is exchanged between UE and eNodeB it is integrity &
ciphered protected.

MAC-I = f(key, varShortMAC-I, count, bearer, direction).
Here varShortMAC-I is prepared by using (current cellId, pci of source cell
and C-RNTI of old cell). Other parameters like count, bearer and
direction set to all 1.

crypto-perf app is updated to take short MAC as input mode.

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
app/test-crypto-perf/cperf_options_parsing.c
doc/guides/prog_guide/rte_security.rst
doc/guides/tools/cryptoperf.rst
lib/security/rte_security.h