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 A78A5A0C41; Thu, 15 Jul 2021 18:43:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0907641356; Thu, 15 Jul 2021 18:42:39 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2041.outbound.protection.outlook.com [40.107.212.41]) by mails.dpdk.org (Postfix) with ESMTP id F166D4125B for ; Thu, 15 Jul 2021 18:42:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HFsTwvyrSIan5Lzv20zvoZrzT90Pf7Kt/rjELg0C5EGsCrFHYZAXV9Um1sFpij+HAl8lAyTUQwLqa0P3tMfX/o7RQJoRZRteqktW8LWwaKdYeelU7W4Gzl06DrRpj5Jvpk+7IPRLbBV6qfDrDItD4qy0pALXKVSzRX+xkXWTT5LSroW49K92sGp3I+r5h1plsXHo+QT/jxTYME7VLkHucAmjQN9Ng1FGKGuJJ2WvvYZNaJ/cUuOCw2dn9bBW7MCt5iaYTZg+QjdweAJLfxtdUnJovxgUhllv5ZkUwS9j6Zz5X+f6KvExWo6d+HAlw+wa6+nYhrVdWN0Z2oXNCgVLXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qRFWoSDhT7SOI8wuenW5x2Nosze3DxvlGEzUzE5uaGE=; b=OVmVlx6xn+B9W8ENZUhTPhrIb/yeOSBObZt0P/RmPvh6ymVY2zqrSAgQNIIviNqdDcneVFg0izLWymlNR0P/5vD8h/YhDrAc4Wv+qSAHa9KPCkuBZ8UxW1al0tpeiS0hA0sGq42EH8XrqdI06CfIG3Bw0U+PR2TYOMzv9nmwWfEbPL1D+D4VYepfNw4a4VcvM5xGShwzpPQ5NGPT7C7TUKy/hzQSMwZQHmLuzmnkGlEdlL0LKGQT8/PujMZum2NFPbrtfztypJYVot2VXtyKCw3N0/GjnnOgAaFrbUnzMsQX4WqiwQ3jcgPYeQTgEaIgcS1rKsOJUDwc7r4/EB+pAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qRFWoSDhT7SOI8wuenW5x2Nosze3DxvlGEzUzE5uaGE=; b=jc3O1WRxtDdIiT5jKZ4QFqRJnxtDj/aTgKCfhHYDSeoL6f1dZPjlHg5bkjFkjkRa4olgChoklWDVi4HVg98sd+mJn5n98law08hRsnSP99TpR/IRABHi6sre5eyHMkoTDKSw9ofCMXGrNDcNs+McftQLTJF6qxvAMyzq5AaS4Hwo6zmW0ag3PK7s2HT4jDDxbPVxHstgfo3+0OiXb3SpvVjEDAOgdGvlRj/wAV0M+EWKdPtv9ph4gOWoS+hs7TayLr5TQw8WkJ9UYQLAcL9EirbQlkMVj5CS3pcf4ZZG+XSAx26p/zgJbmDW48SL6/pvWYPPBpvFwRySqIH+wdyC1A== Received: from MW4PR04CA0343.namprd04.prod.outlook.com (2603:10b6:303:8a::18) by BYAPR12MB3542.namprd12.prod.outlook.com (2603:10b6:a03:135::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20; Thu, 15 Jul 2021 16:42:28 +0000 Received: from CO1NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8a:cafe::82) by MW4PR04CA0343.outlook.office365.com (2603:10b6:303:8a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Thu, 15 Jul 2021 16:42:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by CO1NAM11FT037.mail.protection.outlook.com (10.13.174.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4331.21 via Frontend Transport; Thu, 15 Jul 2021 16:42:28 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 15 Jul 2021 16:42:26 +0000 From: Shiri Kuzin To: CC: , , , Date: Thu, 15 Jul 2021 19:41:26 +0300 Message-ID: <20210715164126.54073-17-shirik@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210715164126.54073-1-shirik@nvidia.com> References: <20210715150817.51485-1-shirik@nvidia.com> <20210715164126.54073-1-shirik@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1e7ab0f4-e1f9-465f-5352-08d947af88a0 X-MS-TrafficTypeDiagnostic: BYAPR12MB3542: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1923; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UVSEVUaFycJpLdHK0qgj5lCzIav7iijDhbC7AWNLrZu+gMPft7iX7EkY2YsC2GDRawfcF8nPPN12JLzLPtIbuAAjKnNo2ahLxynR6oZWJ2W75QuxKC9KtA6ReiPn508ZpIuvdc67ZCtwF0TJQZKiJBNISneKNsxxotGlLHGZkkYRrHuxUoOVTzJ+93NqmC1U5g6DtJiE0t4VJWdseZtLaByJGs7nkCgMuP6IIC2BU43KHKOkOODNrwuWIIZCEOd/tSTTIpEOruNRmOqUlissoBeJ+O/PbWfa1dNOX7gta9WvfqM0DsbWvrYGsVVcz6qPcXiY4DylRPLJsY/rcXyFBxZlqU+/YFzV5qf5Q8V+Q0/FVuKN1jCReuzSQo420j94nEoq33552OI9bM7vJYEeR13NBcDgVyjkbN1HWeo5wC8S4UBQzWXBMjQqFSj/69CKKQ4lFQ59slON1x9WclICkiUiKJTjyS3OC83hEfXWsALc3+U7/jPds5r3Ixqhsm6JiPDaNUV6qn3aUykyeTVM8Fd6xYWDYKo/SOTPtVXyb5fEHT6RtXNqR0paFk3v2j+brX0KieLi1KbOm/DGeUr246aoVicWpFpgay3NSkozZ4YD9C3vjibxJ3d3vWFi27OAtn35+sX2gucPe2GTfhl5rzxdmgTuntkv9aG1fnszhUiVNI13UVcCmiPlW64CeXtnQl1ouFMOEIKFd6536iOvWZeL+qMHoEELI485zdTyBM8= X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(136003)(396003)(346002)(376002)(39860400002)(46966006)(36840700001)(34020700004)(36756003)(82310400003)(54906003)(83380400001)(336012)(86362001)(1076003)(2906002)(7696005)(7636003)(36860700001)(6916009)(55016002)(82740400003)(6286002)(2616005)(426003)(36906005)(26005)(186003)(356005)(5660300002)(316002)(16526019)(47076005)(478600001)(8936002)(8676002)(70586007)(4326008)(70206006); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2021 16:42:28.5623 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1e7ab0f4-e1f9-465f-5352-08d947af88a0 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT037.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB3542 Subject: [dpdk-dev] [PATCH v8 16/16] test/crypto: add AES-XTS multi segment OOP tests 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 Sender: "dev" The AES-XTS algorithm can supports wrapped key and data-unit. The encryption/decryption can be done out of place and using multi segments. Add multi segment and out of place tests to the recently added AES-XTS vectors, which support using data-unit and a wrapped key. Signed-off-by: Shiri Kuzin Acked-by: Matan Azrad --- app/test/test_cryptodev_aes_test_vectors.h | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/app/test/test_cryptodev_aes_test_vectors.h b/app/test/test_cryptodev_aes_test_vectors.h index dd7ffde685..a797af1b00 100644 --- a/app/test/test_cryptodev_aes_test_vectors.h +++ b/app/test/test_cryptodev_aes_test_vectors.h @@ -4687,6 +4687,70 @@ static const struct blockcipher_test_case aes_cipheronly_test_cases[] = { .test_data = &aes_test_data_xts_wrapped_key_48_pt_4096_du_0, .op_mask = BLOCKCIPHER_TEST_OP_DECRYPT, }, + { + .test_descr = "AES-256-XTS Encryption (512-byte plaintext" + " Dataunit 512) Scater gather OOP", + .test_data = &aes_test_data_xts_wrapped_key_48_pt_512_du_512, + .op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP | + BLOCKCIPHER_TEST_FEATURE_SG, + }, + { + .test_descr = "AES-256-XTS Decryption (512-byte plaintext" + " Dataunit 512) Scater gather OOP", + .test_data = &aes_test_data_xts_wrapped_key_48_pt_512_du_512, + .op_mask = BLOCKCIPHER_TEST_OP_DECRYPT, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP | + BLOCKCIPHER_TEST_FEATURE_SG, + }, + { + .test_descr = "AES-256-XTS Encryption (512-byte plaintext" + " Dataunit 0) Scater gather OOP", + .test_data = &aes_test_data_xts_wrapped_key_48_pt_512_du_0, + .op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP | + BLOCKCIPHER_TEST_FEATURE_SG, + }, + { + .test_descr = "AES-256-XTS Decryption (512-byte plaintext" + " Dataunit 0) Scater gather OOP", + .test_data = &aes_test_data_xts_wrapped_key_48_pt_512_du_0, + .op_mask = BLOCKCIPHER_TEST_OP_DECRYPT, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP | + BLOCKCIPHER_TEST_FEATURE_SG, + }, + { + .test_descr = "AES-256-XTS Encryption (4096-byte plaintext" + " Dataunit 4096) Scater gather OOP", + .test_data = &aes_test_data_xts_wrapped_key_48_pt_4096_du_4096, + .op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP | + BLOCKCIPHER_TEST_FEATURE_SG, + }, + { + .test_descr = "AES-256-XTS Decryption (4096-byte plaintext" + " Dataunit 4096) Scater gather OOP", + .test_data = &aes_test_data_xts_wrapped_key_48_pt_4096_du_4096, + .op_mask = BLOCKCIPHER_TEST_OP_DECRYPT, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP | + BLOCKCIPHER_TEST_FEATURE_SG, + }, + { + .test_descr = "AES-256-XTS Encryption (4096-byte plaintext" + " Dataunit 0) Scater gather OOP", + .test_data = &aes_test_data_xts_wrapped_key_48_pt_4096_du_0, + .op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP | + BLOCKCIPHER_TEST_FEATURE_SG, + }, + { + .test_descr = "AES-256-XTS Decryption (4096-byte plaintext" + " Dataunit 0) Scater gather OOP", + .test_data = &aes_test_data_xts_wrapped_key_48_pt_4096_du_0, + .op_mask = BLOCKCIPHER_TEST_OP_DECRYPT, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP | + BLOCKCIPHER_TEST_FEATURE_SG, + }, { .test_descr = "cipher-only - NULL algo - x8 - encryption", .test_data = &null_test_data_chain_x8_multiple, -- 2.27.0