From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C01B34609B; Thu, 16 Jan 2025 09:36:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5E8474025F; Thu, 16 Jan 2025 09:36:16 +0100 (CET) Received: from SEYPR02CU001.outbound.protection.outlook.com (mail-koreacentralazon11023106.outbound.protection.outlook.com [40.107.44.106]) by mails.dpdk.org (Postfix) with ESMTP id 3874240156; Thu, 16 Jan 2025 09:36:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZIUSC1UBWk/5mlr3HyS1lsW2wbSVOnsTzd2We550RPBZRNdWRoD1s5ET6M28UCGZaMsHjr+iVEznCk3FGaUIY6ikx3JxKwELuoKI9RB6BQdco5Ba9r24wOJ1Gz/EiSbTGL0R9yCNe9RMpXY8NoSr/I1MUTJsB0zXOdydYrQ4+QMDVb1DeIOIhyWgUWqCp6FzTrcnFGdD82+TpVSzRME/ELJl1NIU4yYq3arteTKyKEgNYvqjkPiJeaUvkk0VXUOt0OM8g9LVMUnZVs8S7GbWyieNrMWmpvponpvQvrUtwXOmYyDPsKK/Yn14Q4dGm+vlymIsBzQYouank1RdhM4AkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QfhfeLrGvtRXW49FG0s8sR8IHatnQP36MDl/p70jCzU=; b=C5LIb6XUH3u/CXZeuJlkXJPByyvBJW/Yv4G8T/pU/gGWEDOLNau0N3vaoRCuJz2L75eP9x2RDxNbn6DJltd6kw869sWYXE5vTOqgDsKOl6/RslRtNNo3Ef9u/BP9Jitmu3ushaLZVWl5bIx7b61RSTScoAiMYUZ6s39/4SFiElya3lh7YfWOtw7IGZjfv96jNPHGacQ7aZ4HsCFH9neIaQ7lKw1Oq1ladrmrL7imhwJ9nW8BhHsIC/fUqI9JCzm9H2NCyF3WXDzJMA+8JKTz7uddJYj08tjnAOv/Vr1uiUr613wfZObqqAtNgSdgigCvcCsPBCROBC4mbs8zVd2NaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jaguarmicro.com; dmarc=pass action=none header.from=jaguarmicro.com; dkim=pass header.d=jaguarmicro.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jaguarmicro.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QfhfeLrGvtRXW49FG0s8sR8IHatnQP36MDl/p70jCzU=; b=DNIHGftLR1S9eOeHR1TBIgF5Sc/xhgOFj0R0f+yXtaqThXL8nZDcRS07EVevzep3f7hc0QOJ3AGNMixZvtbIUfldBTXNurfcPNi1ipPCCU4hhviQWQV6MtB2k8wRFXqBxlpDJjNrlP4YvlVwqWohvD2B86je7J7OabYYRoPwU5i5PqeiFnpXze4ZMCFNnbVr0B3/IqROcImkw5vyEIOSLNq9I3k0h/M9vqkU9+GIAN31t18jbfCi0nw0yBNOftEekJhB+3eyFat2+aSFdcSm+Y7qnB9tscyFaa9pkXrflqw9vG35BIXuSUITD7sr3lWmEWkvtrqbUQ58oJJ1crXWpQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=jaguarmicro.com; Received: from SI2PR06MB4234.apcprd06.prod.outlook.com (2603:1096:4:15c::13) by TYZPR06MB5872.apcprd06.prod.outlook.com (2603:1096:400:334::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.11; Thu, 16 Jan 2025 08:36:10 +0000 Received: from SI2PR06MB4234.apcprd06.prod.outlook.com ([fe80::7c6b:7e04:5448:4be4]) by SI2PR06MB4234.apcprd06.prod.outlook.com ([fe80::7c6b:7e04:5448:4be4%6]) with mapi id 15.20.8356.010; Thu, 16 Jan 2025 08:36:09 +0000 From: Shaokai Zhang To: dev@dpdk.org Cc: gakhil@marvell.com, fanzhang.oss@gmail.com, stable@dpdk.org, Joey Xing Subject: [PATCH] test/crypto: fix the bug of AES-ECB test Date: Thu, 16 Jan 2025 16:35:48 +0800 Message-ID: <20250116083548.118-1-felix.zhang@jaguarmicro.com> X-Mailer: git-send-email 2.47.1.windows.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) To SI2PR06MB4234.apcprd06.prod.outlook.com (2603:1096:4:15c::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SI2PR06MB4234:EE_|TYZPR06MB5872:EE_ X-MS-Office365-Filtering-Correlation-Id: 9757c21a-0cc4-4fe3-5d13-08dd3608d388 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Ze7Pl4+XrBkzqYAzQ9Pvf8EOyZPcHt9eF8jcglFEQFlroYb0C3uCJUBo3l+4?= =?us-ascii?Q?NnNGTY5lV8YKZaZjLVtnpc7fMXLwac1NkFggU2efJQfOoD19sK/T4XjiXkhz?= =?us-ascii?Q?vF94FOynqZnFO5YuXCb7mi+LepPofkckkZ2PD05wo0wiE6FSzhCBrvxerx8b?= =?us-ascii?Q?vtjxXOvrCU2NCzklN9YSjmvV6lJKzEwv9E/89NU2pre35LwFsFaJ+IrBV8lf?= =?us-ascii?Q?xMWJN/l4oZzw6tScacDAtMAND/0+ftSvUtuPbSfkXF4eehVTfljxOThxMQwk?= =?us-ascii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wfCSTilKuaW3mBjqQmClpMZDrQ?= =?us-ascii?Q?+4iMspWpZt3QXdlMbzncknOsZB60gDdg1R8JPRL60iab5/vjO+Z8oJp6ntRo?= =?us-ascii?Q?1x/7w8C1Dfo5t4N4fJbwsknZpBFHWetXxr9or5fd03cB73RSsXwykVEViwHE?= =?us-ascii?Q?nBpy4t0r9DfNuMaDL3BgHlBYrmUIuzYPh1qMMrbs8h+l4yElLEdKwI1W+wuq?= =?us-ascii?Q?OR9BNFckt4p/u8DXmn9IKEHY145TBeZYafz6UibpxenD6szWrxWk3cGkD1Ia?= =?us-ascii?Q?BQIz7dJPeBXSrFlmSvZTKx6BdhDEsb/V?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SI2PR06MB4234.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(52116014)(376014)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?zt0gP66hRcC3p10fFIAMqcrmsdtAmz2/m3N2szWWNnisT6rJS4lal+0wf+Pj?= =?us-ascii?Q?pwafqqwVU2CpYbh98sFfuwdl6cxN0Z5fJrbAXmFbvCDGXxg0DUz/CfiJLSgD?= =?us-ascii?Q?8aT6x9pAE6zZMK+7ebgCcZBj1iM1OCIXmT+2KSgpH77sc+ZVWvlREEuVR772?= =?us-ascii?Q?mz8MSFXLJxGV4mumIG6BOwewszZvDuqmg+Nud34JnR8kJ4ywULN8JrS060V0?= =?us-ascii?Q?v3NZjecXJhMiSDML2Ao+eXO0y4meNwj9xPvB4+kwKUeBsrZb65I2UGevU1Vb?= =?us-ascii?Q?946DYMxWPuKrDUqSTkdG3xDqfrWt8I1nAAZNLqVkxIIVhie6JyfNmED2XUx1?= =?us-ascii?Q?4ieW8ZMrNA/Mlite50kvEM9Ke/ZIUAy/Qsq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ii?Q?i8Lu98mN3AtbGKiw4mWg4D5lgG2u0sUbwqmcTL0T708BULC8GEFw2cscZgu0?= =?us-ascii?Q?EVjAcVHozVrB857FOXHZMsiEPDuSpsPEWy9W3LnXpU4b1rbx2cPIcd74K4f/?= =?us-ascii?Q?6m24SeyU87D6V0eDkiuBOF92LCdIS/oQQ1/uBvGIhPHw+ez8UQoSkvOELYX3?= =?us-ascii?Q?96uKxthltL6fOzrNHoTVJFMKlJuO//xGimSU9iHI+tSmHHXMMu5TOzRoAGVG?= =?us-ascii?Q?dGkSWDkdpRMmLqopSkYT3KwfKVstdI/a6p9scXvfZeSZdt5bJnnYyFbVD8tq?= =?us-ascii?Q?ZCrijDjrABKzDVLz3VN2gLiMrhLeonLts2vwZWsItWZpLFW329hLmam+Rfvv?= =?us-ascii?Q?7Q=3D=3D?= X-OriginatorOrg: jaguarmicro.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9757c21a-0cc4-4fe3-5d13-08dd3608d388 X-MS-Exchange-CrossTenant-AuthSource: SI2PR06MB4234.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2025 08:36:09.7579 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1e45a5c2-d3e1-46b3-a0e6-c5ebf6d8ba7b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Dqm5FCv9c4VFB6DndoaapUQPzdnNL6vY5ti5j4h2eqMEqkZ/OHsKxwi6+sR8TCCaV4R4MWr/P5ikEoP8i1XulzFobuwDkcS+S45ZiFA3ubk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB5872 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The test vector aes_test_data_19 plaintext is 192 bytes and this vector is used to test 192-byte plaintext, but test vector plaintext.len value is incorrectly assigned to 64. The test vector aes_test_data_20 plaintext length is 256 bytes, but testcase comment incorrectly describes it as "192-byte plaintext". Fixes: c94c520b4163 ("crypto/aesni_mb: support AES-ECB") Cc: stable@dpdk.org Signed-off-by: Shaokai Zhang Reviewed-by: Joey Xing --- app/test/test_cryptodev_aes_test_vectors.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test/test_cryptodev_aes_test_vectors.h b/app/test/test_cryptodev_aes_test_vectors.h index 7127156cc4..505e603b7e 100644 --- a/app/test/test_cryptodev_aes_test_vectors.h +++ b/app/test/test_cryptodev_aes_test_vectors.h @@ -833,11 +833,11 @@ static const struct blockcipher_test_data aes_test_data_19 = { }, .plaintext = { .data = plaintext_aes192ecb_192bytes, - .len = 64 + .len = 192 }, .ciphertext = { .data = ciphertext_aes192ecb_192bytes, - .len = 64 + .len = 192 } }; @@ -5103,7 +5103,7 @@ static const struct blockcipher_test_case aes_cipheronly_test_cases[] = { .op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT, }, { - .test_descr = "AES-256-ECB Decryption (192-byte plaintext)", + .test_descr = "AES-256-ECB Decryption (256-byte plaintext)", .test_data = &aes_test_data_20, .op_mask = BLOCKCIPHER_TEST_OP_DECRYPT, }, -- 2.47.1.windows.2