From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0043.outbound.protection.outlook.com [104.47.36.43]) by dpdk.org (Postfix) with ESMTP id 081BE1B845 for ; Thu, 8 Feb 2018 07:13:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=wzydPMyxCRkzvMjs8BbEK1msV7qwdOzr+CnKqf74cCk=; b=IPzcKAi9fdaSGJVdTMcb6HRJ/rO0/w7gALA9iF70bS/qJq2BdTKvSGHSaU4+5NksN0GDRl3afI3lVcgVzDAhEWlxBy8X1cfjhpLwkjfTK71KCrp6CsWiD5XHg8zaYRQzTdFbptyEnWcT0z9mLQVcJdBJ9NnPXmLBXIfEqvBk0JQ= Received: from ajoseph83.caveonetworks.com (115.113.156.2) by SN2PR0701MB1069.namprd07.prod.outlook.com (2a01:111:e400:3420::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.10; Thu, 8 Feb 2018 06:13:09 +0000 From: Anoob Joseph To: Akhil Goyal , Declan Doherty , Radu Nicolau , Sergio Gonzalez Monroy Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Thu, 8 Feb 2018 06:12:42 +0000 Message-Id: <1518070362-19441-1-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: SN6PR0102CA0016.prod.exchangelabs.com (2603:10b6:805:1::29) To SN2PR0701MB1069.namprd07.prod.outlook.com (2a01:111:e400:3420::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: acc64391-ba3a-4a06-4234-08d56ebb0857 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:SN2PR0701MB1069; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1069; 3:sihJH7/jBqiVnoVUoQi+i6MUyviCkbUybpPt1jS7DTs1vLmRyaaoGRfad4nRd5J3DU+2/Q2PSE6o246f81/Kq8/RPgvcGQvpTJ3IFBgZI9weB6wHlqUkKi2CpoGdHhxrQ8ObOwoWwdUkOX9D2t2myP1NhqqsHz+wYWxexruEU8/RGPgt6HP6pgznt3GVFKOMPA/47uEzByUAp33xxD7RfmC5ZmzNzIMQ9KwU5d3hePxMH7AJUxZQlEmHhOkgI1tZ; 25:+qDUTgmXqY+IXzpKGtE4vWCB1Sp6uITHH+0m0U+7HwFYSNnNUgeOUjrwNLiWmO2/Kdq5zJeiQFRTzXZLIihfMwKUZd50wdWC473YXrqJoETkqBX73HH+jg8vtQo9F9jjl+TZvJRcaqETVC9ljXYUdL3ItnwFKuDIesSZdTp6yWsfenEiR1tgZldcTwiS0+qW7GP6yoQ8v0XCwACafyebleV/3vCgwCUJJIziNXsVb7Bivt1TQIzGIoYY9L9Dy8NE/D1QUNGEZHvutBaZJZQ355AZax8IGKLVwKPN7qN0McaKw/HWsZDaDxESwYMRCDc+llNVZA97whXObzTMpi0hiQ==; 31:iZw9q3ZBAcTq8wT6SLlDDf8ZcDvVbyPaPORxI7UGSfyyYhJEhuFNbkkxQMfvIxy5B5iFLi/h32z6BezK84h0EgxckKnZbaTyAc4y7urqd7+6Nfymw308UtHx2CfrlDCyQm+2AE2SPjgfaVBumdUamvYuQ5x2Rm9Zk1+RVZwf6fMPD0eSYlcV12tfkpFqu+2cZ5AGjxU9hcIpnQwrIaDDYC87Srf0JQveW0ROrZpT9ts= X-MS-TrafficTypeDiagnostic: SN2PR0701MB1069: X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1069; 20:+ZV81biPbjYmvGHjWZI5Ov0lB3Wk7qz0ZgstC7ZUaOJPPnVccNKxwuyivUxq1ngmzBNa1ycHIxMoGenJ4JQenPQnCpG/7syQ8NCVE7fRxCHTLwkSdA8f2A8eKcZGkZwtjRj74EPkmhY5tIHrWLl7kwEJODIipkyxoq1S9dCzWlF6BThBxAtwCxptvRXRq52xv65ncl/hxZpa795WOurTVly2yxoZruTw7A1kAiXzhOUm1YDJ6gP9t/Nh588ecj0kDFOAZRdqQlbShKZhirpOvhRLS8anEHAUsj9yhxO1H+x2GguzseUXbF1ijJNFTkJT+PfcL9oYO3qQHumeXBX6FVPIUTQObSznacsrOoVtv+4/xeLlbe/4e3PT1CuaTiTPdGbgXWh6Rf0U2OeaRA8xrDNhyXqKfj1PjHxF1KpO9Wcbst2jnkGTyQ+VIJhB+TM/UVA43YvafZ5dQ0vzRzdNHALXqqVPJPYn8OgGF4549oZXVikUliMUT9dC+HU4xaBg7TwbsXSZiqaAS2js5cYvBYftZ2wniVm4lYLsVgsiZskP83BEdMcApTMXZZXVRn+ckdxoRg+YsxAG7T10eTdL2Hl3+RejbflvLAhcCmmaMOg=; 4:eetMKrQesZCT0MQjzbVEqjJS5hu0y7uUgPD5NhWuUQqBfIaTs6DabjWVMrF46XdBWI0vs7YMBRwHhZnNgY7aXywfX00JjMPR34eywCFtoMzTeBMRGWTMI7D8ErthfcKJfbqgX76kuTm3t2cG25LjKuZPxMP/xsmLP8GhMhAMx3y/9rV6H2JhJP1VYMDUGCwGu/i7FDA/ouem3P5044DJwPPqsv1tLYRtOCfDOxQHUfd5mdb9djHyJV8Uw0RgoUy6bBLTaNHRAg9HNo+MxtfiMA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(10201501046)(3231101)(2400082)(944501161)(3002001)(93006095)(6041288)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:SN2PR0701MB1069; BCL:0; PCL:0; RULEID:; SRVR:SN2PR0701MB1069; X-Forefront-PRVS: 0577AD41D6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(346002)(39860400002)(39380400002)(199004)(189003)(53936002)(6512007)(6116002)(3846002)(8936002)(81166006)(2906002)(6486002)(81156014)(50226002)(7736002)(305945005)(66066001)(25786009)(6666003)(8676002)(478600001)(53416004)(5660300001)(36756003)(42882006)(4326008)(48376002)(54906003)(110136005)(16586007)(52116002)(51416003)(8656006)(69596002)(72206003)(50466002)(316002)(55236004)(26005)(6346003)(6506007)(105586002)(386003)(97736004)(1857600001)(186003)(106356001)(68736007)(16526019)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1069; H:ajoseph83.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1069; 23:0tuaqUZD/KA28Kuas4qH+94do8IRJ2CmJvYXO3S?= =?us-ascii?Q?tv36aGqtoH0bna34Vtux2aEvFDemwQaDCAzTvjs0BAQp1zcdM9lBA3iXCjxI?= =?us-ascii?Q?IrblAMpa/+huSsovkt6neu/l+WbgY7rTnmIEkRgliYjTyyNghRFb1waaAt/J?= =?us-ascii?Q?DxxYwYQTvBtxaOcJg2iV7sLVyUSjIoZqg9cVSWHCj8e1j41nBAgM9SrPnvOg?= =?us-ascii?Q?QRMXwifsDmlZVL1dp1n3o9sFCn47a8LqVK9P4e8N/oRKXcoTraEFmIZxNENQ?= =?us-ascii?Q?gf5/AqhZOluOaFfpTqXGO27QDli34ET8tmjA2PEJFMeICPGEh2He8Xpy/HPT?= =?us-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bGZRH8rBUvh8wL20dcmnhOB7j0MQbw7vGSbD8Q?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1069; 6:2fBvBqyCASG/itmWEPCVdurTNtgBTtbNJApGzantKvLyIGIAWqcnW7J0X8GwSNfZT1/PvHCwMw5wPalJk2WbtHspzqiW4mTDFgld20JHQQz8u1CRIZSTybbrW3r3WjMZS6dKN2Ke7Ny77i0iT+WQpbLctZhOz7/RllwQ1zCfmRzXXqai2mGrl+YImlFR2d0Y7egUOvlYww7UxbtVFjni0x0j6opTd/TTiJo0bud0wm5TwyqHUDwEn2xnEavaSmufsVGRH+y8O78+qW2oNTOjy4GHOvqvtK9PU5WenYvkdtxnYlEnWSGEJqXjv6pzqpBOQ3A5IhWMdpQKyIsWzBsNheUdKwcOqZkvMHagSMU7joU=; 5:X7zKYpVoXZmKEJgAM2vI2ja//7rSbQiok9kFshlJ7A1AW2y93dMikTPMAYi9BJexh46mo13wkfItoomMSDbGwzZmpOE47/wVzI0JXU3ZibczLPhLyiKKqjwi/DoMbEJMprLRpwmzXBHcerG0puaK5FyzzWMDaDzMRrdiWKVE+Aw=; 24:P15xt3cedmSYVz9JnX2LY0/SIClL8nn5XtFEfWgge2K55D4xREVPUxotK09eUYHeldCvgmKw8San/u4YyMMTeuN+mJX3i62biCvpkb+VikQ=; 7:qioY7sEL/HBTM+nFPVwmlLw2nj+Sy3e5c7UyeHa5lXc7w3+fRWeXNGg0xPFjs9LSt/w9+c8Jw5YOccdAyJlqEIiTiGAhPrJdl9nKGSlaCwz5hNy5hFdqyi5+IMgtythLVQB85LVjQimlwJWS9e4yQD7QS7uua2IhJL14ejAS5b6a2PRZtl6aLgS2mTbl7AvjTsDgXmJydz5tCQYEP3DahfikULr+EfMT2PKST94AFs71mmB1AaQjrKuTo3FKlWBL SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2018 06:13:09.5512 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: acc64391-ba3a-4a06-4234-08d56ebb0857 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0701MB1069 Subject: [dpdk-dev] [PATCH] examples/ipsec-secgw: add support for AES 256 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: Thu, 08 Feb 2018 06:13:14 -0000 Adding support for AES 256 algorithm in ipsec-secgw application Signed-off-by: Anoob Joseph --- doc/guides/sample_app_ug/ipsec_secgw.rst | 1 + examples/ipsec-secgw/sa.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/doc/guides/sample_app_ug/ipsec_secgw.rst b/doc/guides/sample_app_ug/ipsec_secgw.rst index ae18acd..12ebd37 100644 --- a/doc/guides/sample_app_ug/ipsec_secgw.rst +++ b/doc/guides/sample_app_ug/ipsec_secgw.rst @@ -422,6 +422,7 @@ where each options means: * *null*: NULL algorithm * *aes-128-cbc*: AES-CBC 128-bit algorithm + * *aes-256-cbc*: AES-CBC 256-bit algorithm * *aes-128-ctr*: AES-CTR 128-bit algorithm * Syntax: *cipher_algo * diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 25ceea1..21239dd 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -69,6 +69,13 @@ const struct supported_cipher_algo cipher_algos[] = { .key_len = 16 }, { + .keyword = "aes-256-cbc", + .algo = RTE_CRYPTO_CIPHER_AES_CBC, + .iv_len = 16, + .block_size = 16, + .key_len = 32 + }, + { .keyword = "aes-128-ctr", .algo = RTE_CRYPTO_CIPHER_AES_CTR, .iv_len = 8, -- 2.7.4