Dear NXP Team,
Our application are using DPDK cryptodev library to do ciphering & auth on LS2160A and found the following issue.
When calling the dpdk rte_cryptodev_enqueue_burst function with some specific length of mbuf data (eg. data_len=88,data_len=152,data_len=168,data_len=342) and specific algorithm, the SEC engine report "SEC returned Error . 4000221C".
Do you have any similiar issues like this?
Is there any advice to solve this issue?
The configure for call rte_security_session_create as blow:
1.auth_xform.auth.algo is RTE_CRYPTO_AUTH_AES_CMAC,
2.cipher_xform.cipher.algo is RTE_CRYPTO_CIPHER_AES_CTR,
3.{.pdcp = {
.bearer =4,
.domain = RTE_SECURITY_PDCP_MODE_DATA,
.pkt_dir = RTE_SECURITY_PDCP_UPLINK,
.sn_size = 18,
.hfn = 0,
.hfn_ovrd = 1,
.hfn_threshold = 16383,
.sdap_enabled = 1,
} },
4. cipher_xform.next = &dpdk_ctx_p->auth_xform chain ciphering&auth enable
We did a lot test with different algorithms and different data lengths and only found this issue with this algorithm and these data_len(88/152/68/342). Other algorithm can work well with these data lentgh too.
We also modify the dpdk cryptodev_dpaa2_sec_testsuite test data to simulate the scenario. The cryptodev_dpaa2_sec_testsuite also report the same error.
Regards,
Sean