test/crypto: add PDCP C-Plane encap cases
authorAkhil Goyal <akhil.goyal@nxp.com>
Mon, 30 Sep 2019 19:27:40 +0000 (00:57 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 9 Oct 2019 09:50:12 +0000 (11:50 +0200)
commitd883e6e7131b50b0cf6f48f2f595ba135ba753a4
tree486991383e02c852e8ed376d1411cbef6a59e627
parent75b3dddf95ea0d5a1356115f748e1cc43de67886
test/crypto: add PDCP C-Plane encap cases

PDCP control plane can support 5 bit and 12 bit
sequence number. This patch add test cases and test
vectors for all supported algo combinations of cipher+integrity
(NULL+NULL, NULL+AES, NULL+SNOW, NULL+ZUC,
 AES+NULL,  AES+SNOW, AES+AES,   AES+ZUC,
 SNOW+NULL, SNOW+AES, SNOW+SNOW, SNOW+ZUC,
 ZUC+NULL,  ZUC+AES,  ZUC+SNOW,  ZUC+ZUC).

The test cases are added in DPAA_SEC and DPAA2_SEC
test suite as a reference.

Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
app/test/Makefile
app/test/meson.build
app/test/test_cryptodev.c
app/test/test_cryptodev_security_pdcp.c [new file with mode: 0644]
app/test/test_cryptodev_security_pdcp_test_func.h [new file with mode: 0644]
app/test/test_cryptodev_security_pdcp_test_vectors.h [new file with mode: 0644]