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 D188DA0A0C; Thu, 15 Jul 2021 17:11:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F28BD41342; Thu, 15 Jul 2021 17:09:38 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2077.outbound.protection.outlook.com [40.107.237.77]) by mails.dpdk.org (Postfix) with ESMTP id 6C27D412C8 for ; Thu, 15 Jul 2021 17:09:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KIWTneAbkXOr+HTGa/Kx7f3VssvgMvAOq1/V/OM1siKuqDDHdYbMHp5QHNgSM5DTyKOTc08Z/NjdyVwYkwZzZYJesQOO+BmXLmy/BHK8cJxrLeLB3BwEtT8giZXM4LZOwVODfwBACp3beivg/Q5GqhIcNneYggac0FqZQeIrNW7uaf0xONv7xXRSImvuMKKfGL3Z3v/4bKtcFV8RHJKjOzHkCgamNBLGypUfFzpGlWunbVu5F5qkRaEPnWn4DHKQku6EKXMTEf9X/uxqZ83RibOcPoorels6wDd9nM9sZHaFbfVnz4NkQf5/nK3jqcWlW6DxYZwqgKIBGzY/+KapLQ== 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=XtbNZir3/ly7Gdrd8NsQcO5P4B/xciXnbMZtoizDbow=; b=Mbtp1y8X3zoNES/Egpr+zvQR0rGI1J2QOIIERA84JlUZbc642hTJuamjQJOBwx8n1dt1da86L9Qq0JJr2lQ80EnSpKR7Cx1XbVGz13HJqpLpgbVlswN+C7Ojqk3iKS+aNJlKoENc9MLRwqAhJHCfBX3dNwGByCk1ZGtwNTkVQ583GvrL6da30NuVkj0XZMI28+1XheCGzpOVY5/r4EC6SHoAxdVTDsGSgEy0f+XIMtMoEgJAIpzbR07xkjhmhxbgelSM78B1nBipvzGz1zE5hCWcRFvqcoxVlgmuDT5wUIVwodbsMOlvAbGEqeux9GyaMa+2452LIzHFpQbn5fwWJQ== 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=XtbNZir3/ly7Gdrd8NsQcO5P4B/xciXnbMZtoizDbow=; b=ahKU2KgKiHBgwIaaWVv9/Ada7LaFV/3M23eZqHZxmJilS8plItiQCbz+59eiDrKNLpZWk+UbeMYhAXALZc6Oq+5GPpJ9CyZigPTCEpTuwNP68rxnWx//Olur2q0KExLwLU7PGdQE/VLeRX2GN1COdbYaUijPujI3TJtn8h7xu7NFXSELSCGRpjt0yu6NKw3oFaUwJAEb3HhoPWf8dqsAyUyfFCbtOxramwyF+T6wgc51NkuDM7NNZYsE0ajzmF20z/NyKIJ9RUGQcEodKLPCtbkX7WxGuy5q1u+lVFOZ3u7Dp8MSY1vPeEIBE/1ehmifgTIF8lbIHul4hr3C6wczkw== Received: from MW4PR03CA0248.namprd03.prod.outlook.com (2603:10b6:303:b4::13) by BN6PR12MB1873.namprd12.prod.outlook.com (2603:10b6:404:102::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.22; Thu, 15 Jul 2021 15:09:31 +0000 Received: from CO1NAM11FT007.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b4:cafe::65) by MW4PR03CA0248.outlook.office365.com (2603:10b6:303:b4::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23 via Frontend Transport; Thu, 15 Jul 2021 15:09:29 +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 CO1NAM11FT007.mail.protection.outlook.com (10.13.174.131) 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 15:09:29 +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 15:09:27 +0000 From: Shiri Kuzin To: CC: , , , Date: Thu, 15 Jul 2021 18:08:17 +0300 Message-ID: <20210715150817.51485-17-shirik@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210715150817.51485-1-shirik@nvidia.com> References: <20210708152530.25835-1-shirik@nvidia.com> <20210715150817.51485-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: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d07c60b6-e1df-4734-2ee1-08d947a28b59 X-MS-TrafficTypeDiagnostic: BN6PR12MB1873: 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: mWxbzQ+9cMyIih03ca7KbzEjHFrwLfSobcyc6TuECPJL7u8Gjsrp5CcrCkMNGjS04CjKJfjglD+p/S/e5WO+tV9TORYjdym0UJpYXbpEipSeH/XOJJQuHokh0HqWXkFuPgajYb/6S7KpqA76GDILz9PqCZmgViI50UaZaLHmuFxKt4y5B9o7KI0sw6VFGEvNT35b43XBOK18zzY0W/J0RrshV2Ld5/eX+m7CwESVmhWkg/JFou7zKN8XVB1AjCXIV04DaQ1FWhL/ksTZUhUGSeUCHlW7rtKDSIyQEdsuHtU/dTpgo+5ytJpXK0rlYxCEQeH74TN07dsqvZ2xfs6btauVe42OvlabQp8TzgLlRFgoyqJctKHKD0I4kdYHdaxX5158a4iFPcrT60tnBrW7CBOmEJgf5lsxpEDw1RBnu04I9BDzTeuWKOhBiZi4D3kAyFBSw7gn3nhJ4lBxOnpVUNLQI5vrChoeu+PkoYxGHQLZwUa+E4XuRJ+C15pZvxYD1qZdZwidkLuyq6U/crcdbDPdPgVV+Er0housFjCDcVQHY7G+y0I4wzwcbv5iIRjiLbUIcJevKo9XlRGV3/JCmctL6PvYcs/rn5EqgXqgcQMSnAyLZLY8ti4sLpGGwSuJ1uA60uZUNjuMyeXDzRgaD1/S1t3tWvwWuXJxKe6os/4I4kfL4B/3N+ICHD335iaSV30Meq8kq4TODchGPfEHTfEv+NeCUBQvNRe287CitZc= 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)(346002)(39850400004)(136003)(376002)(396003)(36840700001)(46966006)(7696005)(478600001)(70206006)(186003)(6666004)(4326008)(356005)(36860700001)(6916009)(7636003)(26005)(36756003)(5660300002)(2906002)(16526019)(6286002)(86362001)(426003)(2616005)(47076005)(8676002)(316002)(1076003)(70586007)(54906003)(34020700004)(82740400003)(36906005)(82310400003)(336012)(83380400001)(8936002)(55016002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2021 15:09:29.6348 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d07c60b6-e1df-4734-2ee1-08d947a28b59 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: CO1NAM11FT007.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1873 Subject: [dpdk-dev] [PATCH v7 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 | 63 +++++++++++++++++++++- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev_aes_test_vectors.h b/app/test/test_cryptodev_aes_test_vectors.h index dd7ffde685..f0a7376cac 100644 --- a/app/test/test_cryptodev_aes_test_vectors.h +++ b/app/test/test_cryptodev_aes_test_vectors.h @@ -4688,9 +4688,68 @@ static const struct blockcipher_test_case aes_cipheronly_test_cases[] = { .op_mask = BLOCKCIPHER_TEST_OP_DECRYPT, }, { - .test_descr = "cipher-only - NULL algo - x8 - encryption", - .test_data = &null_test_data_chain_x8_multiple, + .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 - decryption", -- 2.27.0