From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0048.outbound.protection.outlook.com [104.47.0.48]) by dpdk.org (Postfix) with ESMTP id D962C1B04D for ; Mon, 17 Sep 2018 15:59:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/ECiKdWRUX8FgTWB/TqVTfyROromg3c4mopxA5PrnK4=; b=HmcQIoJxuz9ALxCqaWct6Eg2q3d/31rvmvQ63WzYsY0gpBak/+qjRgGs1kGe9PGyC/Nw8oS0/sb30pn5GXPVMRVkQO/bCZ6sonNG7eFjKNyg+wEQwfJqG8H65xViRKXtGabNFTbz0U8XOP1B+fxaUSSJHzYAXEQiOz5vKHNPD3c= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; Received: from [10.232.134.144] (14.143.30.134) by AM6PR04MB4887.eurprd04.prod.outlook.com (2603:10a6:20b:6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Mon, 17 Sep 2018 13:59:39 +0000 To: Tomasz Duszynski , dev@dpdk.org Cc: nsamsono@marvell.com, mw@semihalf.com References: <1535118895-6505-1-git-send-email-tdu@semihalf.com> <1535118895-6505-5-git-send-email-tdu@semihalf.com> From: Akhil Goyal Message-ID: Date: Mon, 17 Sep 2018 19:29:28 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1535118895-6505-5-git-send-email-tdu@semihalf.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BMXPR01CA0046.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::32) To AM6PR04MB4887.eurprd04.prod.outlook.com (2603:10a6:20b:6::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e4f7e2a2-9680-4e14-2482-08d61ca5d038 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB4887; X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4887; 3:cOtNDx5TjzrEJB4yj5e6K3HII4KFCo4keqw1s8np0Lbtv5QQsquowIjLzZYKTJcCwMubPHE13lsqQQWu4a6ob5qRYL9PqKoOEys8TiTPWx6dLbQCTaUAfEDNAkrnnSxAX+nHkT4oFLaSCTthKZxX+EGU8xXAkIAxUu3i2UT17BNhabQlMjQ1VmDCq8+eIl3OIAeUwLu+tPXNOZiNkFfQanRw9ipMwb9PVwQTONPAm5g0PG6Oaf/xcWFCCQQMtF8Y; 25:G0CMe74KvjkMrXXUt7jtfBzoCZYhlxwznTZATOCmW/Aki78BAxhkCEBS1hIHc2dp+FuOJpVhZ5o7x16rdIiZTqFfoYlVxoNFdTfO5KcpJ8fz4CxupzdhU0ES6kqLOZNM1t1eRbTvEZ9duuXkJWOWfKfyMfAddu4Di80RT/a8GSNxMmcRfLqzztO5/fh9N73J+O94gCKT1fXB5aZh8hSjB42t3zcdsDiCHo7x9cIsOm4XBsUC7v4qSQ1Zbi+2cTs93Rrc9iXilSsNm1jCWKqO1EEsvFk+DjKsH69uL7COsgfwtaGU+g2QaddwsU54fN3zDRDmpVcf7UmtmGP+CMfF1w==; 31:5m5Ph9RYyBkHB2+NyVVSXQ4E8Zu4JtMEYQzUe9e1GS4fCs5RDL/ZOfcPab1l62gLE3mhddRxk3hj7n7EE2mJMVcoKKDF8ROTFrGewLSJqFrXr/iQCSxZl3vOmIlo4MlHgKbcT6GlhlpZItikU3a6M1e5ElN4PMym/uPdPkq9aw5HotlP8C0xBiiUy4an3g1bl0pHSrOff2ANALG7G6it03xNy2CtvBEJJn8zFmyYmwo= X-MS-TrafficTypeDiagnostic: AM6PR04MB4887: X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4887; 20:5Xqle2rNLmTnOWvukLSuNZm5nzJ0wTepo1Z9+/SWD/5FBLB2wxwyxYey7j3uNtVhRqMNKUXrGG4HIIzlNUMw9cJMZxGw4+uYbGspnrtZAvl8dpTS9rL8JqW47L4XKf6EQzuCMEWE9v1eKJ/iH8+QXnPJXeYjnRjnJzcS0muKNrYmL5TAVa/MRBaA3BMwcpd3ucif2iC/UqcUR4GwzAgehCKjBRXKR3QAiXmmAyLze8hVKg2kxGCDWRTsMuqhHUZf698uneLc56y+ajXW1Q9KbbkIUBzdzh1NEuuUapLlVqlvSB4Z28GM102DeVO07CxjCz2O768hryCVWWIT35UIEL3A6AcNA9kSeHnsM1ItgZr7RDA8WubuqJtDobBfUvREmNx3DoAnutQGF8d8B0qQIq9cNmj0Zqnoy+g6Hns2291iWq/DAiVczd0mnmaCJutXajFUVHzALGUVhAvOtFmrXWalgvVb8R+6egFFWeVPlAzPhQUYtrnxRVYDFP8YHrZY; 4:Oqqo67ap98ThrbB6Rc6lGugbI1xhOtwspg65LuGRA2YU3xqvZMmoP7YnVI+9C2yzzBhLkuuB4NZ0txR0houUuoyF1OpoXDHKbd0G698euw5x40mUeVUr6XCdT3YpFY687a5A/EYYnboJ318QVf0fEotJhsPRr95mA4VCFviOIo9AYxqXxwPO8sFfsRIljgqoxdnzcbjU7cZdD11fwelC8A4WAuTIGc2STYawzmXX2Sw6OOnJbFhNnJNDWuJ0Ae5ljY6s0pB3Bb6WSeribVT74Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(201708071742011)(7699050); SRVR:AM6PR04MB4887; BCL:0; PCL:0; RULEID:; SRVR:AM6PR04MB4887; X-Forefront-PRVS: 0798146F16 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(376002)(346002)(136003)(396003)(366004)(39860400002)(199004)(189003)(50466002)(44832011)(386003)(53546011)(3260700006)(25786009)(6666003)(31696002)(31686004)(229853002)(86362001)(26005)(186003)(16526019)(11346002)(446003)(2616005)(476003)(956004)(105586002)(106356001)(486006)(316002)(58126008)(16576012)(81166006)(81156014)(8936002)(77096007)(478600001)(5660300001)(2906002)(97736004)(65826007)(52116002)(64126003)(52146003)(2486003)(23676004)(65806001)(76176011)(66066001)(65956001)(6246003)(47776003)(4326008)(6486002)(230700001)(67846002)(68736007)(305945005)(53936002)(5009440100003)(3846002)(7736002)(36756003)(6116002)(8676002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4887; H:[10.232.134.144]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTZQUjA0TUI0ODg3OzIzOkNKMk5CY2czV2YrM2lmWjJGTElLallCUHRE?= =?utf-8?B?TDdPa2c4dzhmSnJobUJkS2kwcU8ya1ZaRGgycHN4eFB2WmVFbHpLTjhURDVt?= =?utf-8?B?YlNPZTd3bTlGM0dhUkpZRDNlMVZoNzZZWGZBeHFsMUFYVUpiYmw5RXFsMGJG?= =?utf-8?B?SzRoTW5jYXkvazE0WitvbTErdWtoMEdlaGRSbERyYXRycDNvM1JnYWlqb3By?= =?utf-8?B?OENmeWVNajBaWXdnRGxoams2V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BJP3bZggMF1eUAnaILg6hcHdB+aNkiIXrkWOFrsbt5kt0+RVxBwRaETWizILC8+Irp70BuKA89nw1dYPSicbz9wlaqcE9PXRTzO9hfJRqP+eeP2daOtKO+eTcGmBF/bDkNZzQKu0qVbgNRh/cPZHlX8jKSa9YTJ9rEwKq0dTI795HZgY7EgpjmB1XEjKBp0K7+s3G2ajKhBkJ69sjDhYSphqj9UDD3m1nBWRPZPGrmQypDH25vVgU0tSCxu514 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2018 13:59:39.9019 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e4f7e2a2-9680-4e14-2482-08d61ca5d038 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4887 Subject: Re: [dpdk-dev] [PATCH 4/6] crypto/mvsam: add support for AES ECB X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2018 13:59:42 -0000 On 8/24/2018 7:24 PM, Tomasz Duszynski wrote: > Add support for AES128/192/256 in ECB mode. > > Signed-off-by: Tomasz Duszynski > Reviewed-by: Natalie Samsonov > --- > drivers/crypto/mvsam/rte_mrvl_pmd.c | 5 +++++ > drivers/crypto/mvsam/rte_mrvl_pmd_ops.c | 20 ++++++++++++++++++++ > 2 files changed, 25 insertions(+) > > diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte_mrvl_pmd.c > index 5ef4139..08d4a23 100644 > --- a/drivers/crypto/mvsam/rte_mrvl_pmd.c > +++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c > @@ -94,6 +94,11 @@ struct cipher_params_mapping cipher_map[RTE_CRYPTO_CIPHER_LIST_END] = { > .cipher_alg = SAM_CIPHER_AES, > .cipher_mode = SAM_CIPHER_CTR, > .max_key_len = BITS2BYTES(256) }, > + [RTE_CRYPTO_CIPHER_AES_ECB] = { > + .supported = ALGO_SUPPORTED, > + .cipher_alg = SAM_CIPHER_AES, > + .cipher_mode = SAM_CIPHER_ECB, > + .max_key_len = BITS2BYTES(256) }, > }; > > /** > diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c > index d253b8f..3d3bbf1 100644 > --- a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c > +++ b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c > @@ -298,6 +298,26 @@ static const struct rte_cryptodev_capabilities > }, } > }, } > }, > + { /* AES ECB */ > + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > + {.sym = { > + .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, > + {.cipher = { > + .algo = RTE_CRYPTO_CIPHER_AES_ECB, > + .block_size = 16, > + .key_size = { > + .min = 16, > + .max = 32, > + .increment = 8 > + }, > + .iv_size = { > + .min = 0, > + .max = 0, > + .increment = 0 > + } iv size may not be zero in this case and also in other patch for 3des. Please check > + }, } > + }, } > + }, > { /* AES GCM */ > .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, > {.sym = {