Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E18E5606A31C for ; Mon, 30 Nov 2026 11:11:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.a=rsa-sha256 header.s=pfpt0220 header.b=LIUty6w7 Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D397940288; Mon, 30 Nov 2026 12:11:56 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTPS id BBB3F40263 for ; Fri, 27 Nov 2026 10:53:59 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AR7Icsf677477 for ; Fri, 27 Nov 2026 01:53:58 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=P vgx5vvdAX/Fi0LMYGgxi4egBnQDmhDvl5OwahxkRTI=; b=LIUty6w7HN/OEfzsr pbpPjF6HWnjqg3GjuKY3jFY/vrRuxBDxlEhaCmoKKifYDOI2D2STyt49vIBgWQUw 9Cy4/supdA22LvvGpYroqiDr3SWWHpFRfK61Ce7IqJiU4vKls3ABN4901ntTsui2 njKosIS3Iwmkey1zTFA5cjx2tG1mPrajHsyGP2HV9BuFP3V0yximhZvHLRq3S48Q N4BveN8jszIVjS2hv/FX5OK21c5EpW7IjTQDowcw495RmMZffDLMtajYyZv87DaV raVx5kElT6Tx8sYEJ0aW7YmCGlXqsc8Z8Khgn3lIVT1TexdkOEYA754TPsmlTvgP R14xw== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 4j6xhq9bwv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 27 Nov 2026 01:53:57 -0800 (PST) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Fri, 27 Nov 2026 01:53:57 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.2562.17 via Frontend Transport; Fri, 27 Nov 2026 01:53:57 -0800 Received: from cavium-PowerEdge-T110-II.. (unknown [10.28.38.34]) by maili.marvell.com (Postfix) with ESMTP id 1D6163F7058; Fri, 27 Nov 2026 01:53:55 -0800 (PST) From: Pratik Senapati To: CC: Subject: [PATCH v5 0/5] app/crypto-perf: extend PQC support Date: Fri, 27 Nov 2026 15:23:49 +0530 Message-ID: <20261127095354.1676494-1-psenapati@marvell.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260929122044.1344518-1-psenapati@marvell.com> References: <20260929122044.1344518-1-psenapati@marvell.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI3MDAzOSBTYWx0ZWRfX8YCThRcByGXz ozx8WClKGR9gVBqn+XqZKs1pNgFJj4gZRI4E2P/1QrH/UBXv7/O2N+T98R1Bdbs6LNyFi0PrFz9 gVS/TRxvJGPlG0k3Vz9YOWqU/jFs1u5DZyFLl85mqux8wWh5xjynJaKNaN3aiUCdA6OiLdNcbzW rrosOBccKuRDIXYvoERuagyUdz+pyXKPZF3HKNqmz8ELN4dTiqBc9oR8aJxi+LsWk3nM3GdsrsV 8t1wwKbptVnK3aOVYL3urIJrTlXHLfr7rtrCgoKjKgopV8qnyhhcV8GUDQd+qPMWeZoQjX8kqZK bcyixoLt18BfQ84sS1cdrejJVCVJVRr1wzo6PHuM7qbAgURBDtw7rhZrENfS0b420LExwtd618x 9WMwtkTrHcS0EWqNR4xnym0i3a4m/ECbj9k2NT+6h0FcW96GY9XtlgFaFRU7Ef1tyNacf5wuksn caIXvVu35NDBoNOtFYw== X-Authority-Analysis: v=2.4 cv=IvWL47/g c=1 sm=1 tr=0 ts=6b095335 cx=c_pps a=rEv8fa4AjpPjGxpoe8rlIQ==:117 a=rEv8fa4AjpPjGxpoe8rlIQ==:17 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=l0iWHRpgs5sLHlkKQ1IR:22 a=EAYMVhzMl8SCOHhVQcBL:22 a=M5GUcnROAAAA:8 a=I0lE1YXI1eU7kaK-2v8A:9 a=OBjm3rFKGHvpk9ecZwUJ:22 X-Proofpoint-ORIG-GUID: fAsH9VqzGcj-41TCkTruXMeLY4STKSLq X-Proofpoint-GUID: fAsH9VqzGcj-41TCkTruXMeLY4STKSLq X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI3MDAzOSBTYWx0ZWRfX/LeHmgT8Y124 ye3FMXcfZL4KsiJbOYlttf2jWldk+bvRkLqQnR3lFXTazvWeegUKkLXRP9vYV1bPqLvW2g9fSRE 7UBfK8oFBjdQ5yjnaO27Btw5eykWMCM= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-27_01,2026-11-26_02,2025-10-01_01 X-Mailman-Approved-At: Mon, 30 Nov 2026 12:11:55 +0100 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 This series extends the ML-KEM and ML-DSA support in test-crypto-perf that was introduced in v24.11 (ML-KEM-512 and ML-DSA-44). Patches 1-4 add the remaining key sizes and sign functionality: - ML-KEM-768 and ML-KEM-1024 encapsulation/decapsulation - ML-DSA-65 and ML-DSA-87 sign/verify - ML-DSA Sign-Iteration test mode (1, 5, 10 iterations) for all ML-DSA variants, measuring per-signing-iteration latency Patch 5 fixes a correctness issue in the PQC test vector output buffer handling. ML-KEM and ML-DSA output fields (sign, cipher, shared key) were pointing directly into shared global data, causing all ops in a burst to write to the same buffer and clobber each other's results. This patch routes PQC ops through the cperf_test_vector mechanism, allocating per-op writable output buffer pools (length * nb_descriptors) and using rte_free_sensitive() for private key material. v5 changes: - Added patch 5: fix PQC test vector output buffer handling - Added rte_free_sensitive() for ML-KEM dk/sk and ML-DSA privkey - Used rte_zmalloc for the test vector struct (NULL-initializes optional fields; rte_free(NULL) is a defined no-op in DPDK) - Pre-allocate output buffer pool (length x nb_descriptors) so each op in a burst has its own writable output slot Testing: - ML-DSA and ML-KEM operations tested across all supported key sizes by Pratik Senapati Pratik Senapati (5): app/crypto-perf: support mldsa Sign-Iteration app/crypto-perf: add ML-KEM support app/crypto-perf: add ML-DSA support app/crypto-perf: add ML-DSA sign support app/crypto-perf: fix PQC test vector output buffer handling app/test-crypto-perf/cperf_ops.c | 121 +- app/test-crypto-perf/cperf_options.h | 7 + app/test-crypto-perf/cperf_options_parsing.c | 91 +- app/test-crypto-perf/cperf_test_common.c | 6 +- app/test-crypto-perf/cperf_test_vector_parsing.c | 12 + app/test-crypto-perf/cperf_test_vectors.c | 5586 ++++++++++++++++- app/test-crypto-perf/cperf_test_vectors.h | 65 +- app/test-crypto-perf/main.c | 62 +- doc/guides/tools/cryptoperf.rst | 8 + 9 files changed, 5873 insertions(+), 85 deletions(-) -- 2.43.0