public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
* Bug: crypto_snow3g failed in Auth snow3g + Cipher snow3g
@ 2026-01-16 10:45 coolwilled
  2026-01-16 16:45 ` Stephen Hemminger
  2026-01-16 17:53 ` Stephen Hemminger
  0 siblings, 2 replies; 3+ messages in thread
From: coolwilled @ 2026-01-16 10:45 UTC (permalink / raw)
  To: dev, users

[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]

Hi,
I run "pdcp_autotest"  with --vdev=crypto_snow3g in app/dpdk-test in dpdk
v25.11.
When i = 42 in run_test_for_one_know_vec() in test_pdcp.c,
It is PDCP control plane Auth snow3g gen + Cipher sonw3g enc,
the case failed because the last 4 bytes is cleared in
last for() loop in line 167 in  process_snow3g_cipher_op() in pmd_snow3g.c .

It can be fixed with following change:

diff --git a/drivers/crypto/ipsec_mb/pmd_snow3g.c
b/drivers/crypto/ipsec_mb/pmd_snow3g.c
index b3c3b05a8a..45a8be5fc8 100644
--- a/drivers/crypto/ipsec_mb/pmd_snow3g.c
+++ b/drivers/crypto/ipsec_mb/pmd_snow3g.c
@@ -157,7 +157,7 @@ process_snow3g_cipher_op(struct ipsec_mb_qp *qp, struct
rte_crypto_op **ops,
        for (i = 0; i < num_ops; i++) {
                if ((session->op == IPSEC_MB_OP_HASH_VERIFY_THEN_DECRYPT ||
                        session->op == IPSEC_MB_OP_HASH_GEN_THEN_ENCRYPT) &&
-                               ops[i]->sym->m_dst != NULL) {
+                               ops[i]->sym->m_dst != NULL &&
ops[i]->sym->m_dst != ops[i]->sym->m_src) {
                        digest_appended[i] =
                                snow3g_digest_appended_in_src(ops[i]);
                        /* Clear unencrypted digest from

[-- Attachment #2: Type: text/html, Size: 1591 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-16 17:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16 10:45 Bug: crypto_snow3g failed in Auth snow3g + Cipher snow3g coolwilled
2026-01-16 16:45 ` Stephen Hemminger
2026-01-16 17:53 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox