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 7AA8FA0C48; Tue, 20 Jul 2021 15:11:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 830B741199; Tue, 20 Jul 2021 15:10:31 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2057.outbound.protection.outlook.com [40.107.220.57]) by mails.dpdk.org (Postfix) with ESMTP id 4D54C4069F for ; Tue, 20 Jul 2021 15:10:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hza3SiKJOVYiCSQG1eTtf2j+5jP1rcj0ydOdrb4gRNyKn0/DOPLkQKct9QU+FFhnhzJc2ExjOsxSdG5EOjPevjwkMMk43/XJOFiJPGn7fjDwOU6HVM61XgaRPMBdpEwyutLV/VZmxNVSOeMH8OLK/2uHNNUCRxT6j8k0epsi1XDeImvw2pGWqeRi89oCExj0xifnqYdH6kBE5Ay8QQ6L1ns947RzRwJ815TNKEjBNkNnAMs3tlmmaCEdilNRAbBr75FJLVtMnaZH2njsSRl1qmUSmXUcr7NGoBkAKKprprNfzH2RQVqoZOFwzT0DjdZmKAbZRdJf0yZZziHQGFubTQ== 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=4nOg3PTSTLyszByJBemtvR4F6PSzLR0OoL6iu2Zb+8A=; b=ViSK6sjf2Es+qtYtgQkYbzp9JegAK4e71MorHodZhARjaeoJ8QgtEUKxUrN/SgKCc0SV7F7xFex0PvMex3/+IqmEG4Jfgk4a77h0TZ+1jr2aaZfQE87+DGaiKIgTINiWU2LAiTUsuUHkJlqL1T5Yd+bsiyWBiDi90Xz4TJasvNfGaZicMzoOM7lzX4jB2BVyvb4DWaoqHXhIj9KPnSFb3g8/z8YRePywU793aAJfztQIqhA84lA23Ix/1VckekK/5hig1tkdRPXuo5egNDJ+jtxI/8q5j7lSrcfBftl4BueM5QOr5EHtJScBCjxKNdL44bD5t2d2RIcqnT58tI8Kfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org 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=4nOg3PTSTLyszByJBemtvR4F6PSzLR0OoL6iu2Zb+8A=; b=Lc3OUlXNegLfOXMCh3VTLQOTcSP52Wv3XMCdLQxz27ZJFrE4FKwlV/oPUEm4DwMVAItRzU7rWj85atL5aX9MpkSqPrfEWk3YCmkcZujGBepVjsYKBaY8NC+P9cFSp7UVI9Ei5fkrUTG5B+jlNYtolVIuBa4TdGynF6014b88BIM9XfoGiQ6cLWm5g4nMlEnsNgtVmGqcrq2We89awEB2WGQsL7FDzg+AZAzBETeUwS7zNquOMIlNqP9711BA2T8YH+iyEitYIRROYKhDr+h6LI6PcbJrTHLfd8Lvbm/my1Lg84zifJxCcb1NXaTJzfmpJlH+HO8IrZq0eN3agtS+iQ== Received: from MW4PR03CA0282.namprd03.prod.outlook.com (2603:10b6:303:b5::17) by MW3PR12MB4506.namprd12.prod.outlook.com (2603:10b6:303:53::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.25; Tue, 20 Jul 2021 13:10:28 +0000 Received: from CO1NAM11FT045.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b5:cafe::31) by MW4PR03CA0282.outlook.office365.com (2603:10b6:303:b5::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Tue, 20 Jul 2021 13:10:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; 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 CO1NAM11FT045.mail.protection.outlook.com (10.13.175.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4331.21 via Frontend Transport; Tue, 20 Jul 2021 13:10: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; Tue, 20 Jul 2021 13:10:27 +0000 From: Suanming Mou To: , CC: , , Date: Tue, 20 Jul 2021 16:09:43 +0300 Message-ID: <20210720130944.5407-15-suanmingm@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20210720130944.5407-1-suanmingm@nvidia.com> References: <20210408204849.9543-1-shirik@nvidia.com> <20210720130944.5407-1-suanmingm@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b3f53927-4e3c-4b61-2504-08d94b7fbf1a X-MS-TrafficTypeDiagnostic: MW3PR12MB4506: 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: ZUKM5MZyPULkh+Qgvlr4iWBqL1lGfpSDOxmsZk1C5e5Lj4lorWQfeMRFzDhLBDVvVehUF8Cem3Jj3EKI9sI2+usOGQOJpFrdmxiZSxCPMScpaMqta60ObFYtim16oCqgef1qQYxHZUkQws2cngL9cBBxtOyj3U+c9na1K9OmktuJTiUnaUi1tOrG9fEOJHJskyZXruba/oyjEyeJXfVk6Rjv0XdXpBEf3GrXMlME9AQbN4/mTYzac/xOqZDJnE1Ee8hzqC4bzELqifGw/6mXyx3X0Z/jII1437XWeR2qYqatmsoXtJ+zAq1VHv7rOPH1EqP0okAtpXT7wfqmxs6RsWmz26cm1Wcmu7eCRrRvMn6wZjsgI3AUXmBS6D1kuFh2vm4LpxbEvsePE/Gsi1I4EhHAH136tiFutGeW8chRsv5DOekIUUPGusH+JJm6IIs1QLcvgh7FfaJHA/zMs4x15Go43g/jaSwyXXTmfTUo+XYT+/W+AXEgLB5i1pa0+CdRgvgvB41bOJQ7DDKo8Ke7DwSKO88PBBnFlRwBfK/kFkPpKNnEnetQxpgMXz0IefvhxOv3c4WwTVXogE6bWo7H4fbzuLXxRu8fCcZBlBn/EZe2+NLBQTqKOCDAFlLnfMqgDuY610vPyOu9RxCyjVUy7RQrkON04zcGIL2Kz4LewK5yT2TCqG8YMV/VCqAQBQrQFNz6QoZwrkC0GdCNAFoqOQ== 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)(396003)(39860400002)(136003)(376002)(346002)(46966006)(36840700001)(426003)(5660300002)(26005)(336012)(16526019)(2616005)(356005)(55016002)(1076003)(82310400003)(186003)(36906005)(316002)(2906002)(7696005)(70206006)(110136005)(54906003)(36756003)(4326008)(70586007)(478600001)(6666004)(83380400001)(82740400003)(36860700001)(86362001)(6286002)(47076005)(7636003)(8676002)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2021 13:10:28.7597 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b3f53927-4e3c-4b61-2504-08d94b7fbf1a 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: CO1NAM11FT045.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4506 Subject: [dpdk-dev] [PATCH v9 14/15] 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" From: Shiri Kuzin 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.25.1