From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0075.outbound.protection.outlook.com [104.47.38.75]) by dpdk.org (Postfix) with ESMTP id 32AB5374C for ; Thu, 30 Nov 2017 14:13:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7paBnAa7KZRZJWer/YlnqKLO4uEHgvO6n3bCVuxGlSw=; b=H1ESfHYOmMaLRFNbvdCUwLZ51Mf72UtvYpfkRJmnMOHDHoigol2xGnTJuOIgxfGDw289RzxZoAV42/nKXvmBYbBF2YpSfTvE/nZsmlzW5z438S6m+t0aGx4/VZxzMn8wOKUGpmlLDwneTqpH1Jp089U3Cabj2bp+WgW5o7X0hv4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Ravi1.Kumar@amd.com; Received: from wallaby-smavila.amd.com (202.56.249.162) by BN6PR12MB1508.namprd12.prod.outlook.com (10.172.24.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Thu, 30 Nov 2017 13:13:00 +0000 From: Ravi Kumar To: dev@dpdk.org Date: Thu, 30 Nov 2017 08:12:25 -0500 Message-Id: <1512047553-118101-3-git-send-email-Ravi1.kumar@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512047553-118101-1-git-send-email-Ravi1.kumar@amd.com> References: <1512047553-118101-1-git-send-email-Ravi1.kumar@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: MA1PR0101CA0047.INDPRD01.PROD.OUTLOOK.COM (52.134.137.33) To BN6PR12MB1508.namprd12.prod.outlook.com (10.172.24.149) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 431b46e4-1231-4ad1-6953-08d537f41597 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603286); SRVR:BN6PR12MB1508; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1508; 3:cHGydCIt0k9wVTFjK5Uokpuo4ufNQNenfx18sJPe45/YSbHrUJqjD0GS1zlgxGKsGtEXUDW07vxYTOPGkRuBVyW3+56rbROcR93UeeBgMN6brEAEChcR3v6hp09aFNh2XKnKEAGhBSjmEu9UI7MDdflZdVO8XiucFh1GYwz84oKBBPRwdpq9gCotT5FOdCJPC4mqJ9i9ZQQUN4x0+/CjUCURHmIRkKovYcO4NzBGlnqD6XtXmQzMoW0rABB8Iy9l; 25:qujypqpU8bsra1CD/zemSLugMmHtYGtLB9Mmhgu2FHe2kd1UWq2MXcZCYZQbH4h4c+3x05n1ZVXjUvrLgGT5I3ppl8FgNW3NAYk8br6LbWON9DkkadPT8odwToo9IrkN9Bgys1tTsZLLleGT9niL1Lz7EYFGBnyZYaTGOq0lFEblruNTv8TxJ21oqS0akwC0za5650ozpUnwL6JTu/ypu46jy05uC1Te7IBAuBonJm5UZMRAoIiqL6ELW5wpb3Vle9cFiea+hmZPON4xvmX3vGrvueWhHw8kl8PLZCs9KjoRYn6rHnmSQ77Bv/Feiy469ER70ydWlp8U70v3k0WWig==; 31:+uEXyLBc/+9GKKGsTxLLxU50OvPx+vKpzuFy12DYAQGs0CSKh2kFsIBOoiFT6Py+DN9ckj93qmFZHlxPvTDPIeuwnukLiINU6idYgKVLvKRyTd/dpZUZT4wTO3WLvJgZgis8pgeXcFS8QPt6BHug69oBxQ2Q7HdMhsAziOFQFSYyxcer4mdDi56dswnXuQ0i51Zr5d1eAJXM6ZC2Q29IlrfwsPqaZoQSaJxm/mdmFYc= X-MS-TrafficTypeDiagnostic: BN6PR12MB1508: X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1508; 20:Duv3RMenJ4ljOVSuduba9iOVk0uZwo22M9+Cq5Zy4lVVUCuUYeDLI/gINcGtrtgDsV/lA/WT9PbVM+iN59g9GAJdD9ByKGJkm32v+3hswq/mQmBW/xduRYPDq5lCDvBtrOYYnU4oxpJ3854ij0TggunkYU9i6ZLwbiPAXoHVYm5ULrDLo5fiHW0YepK1NEvG8Jib7K8bVyBZYHPeXESck+dFNwMl1SlZ8Gqn5K7TzM/gsZGVbNOoPUGRR3hBU5ErP/u+u39z1WIQAi39pJaIQtJtKcQEv9p8CJO+CIrnADxwfA+ZIE0kLxZGrbVtLGlA4RfF93M945FV9tlexHpOmsuM8vOaK4DUW1a0L5wYP3UhAnd8yT4tSa67GJpSRxGH+BfAOhRBFKxycvYJ7ylP6UhERmAc+qZkAoHIQlsdFFLwyJIWxBAPoHBLeH00koJ0SwxKjyhyB+jDOQs1QHwwmYiNB2mSl3RexMWUAfBwGsdiZCQ8D8tgIZZ5fGAum+1A; 4:25Hyk+0cGwNbY2RKQDwe15Qok9E5mWKb+2yGq/T+JxMq3kUTRSljJO21bquBj1aj3dc8seu8x0WyhIgYbuLfFZRpQmerZ40fkabWI3NJVQujqFZpAJkICGpkxZoPYXkc6rHLic9/BjkJNVaxhzLct/qcmqIIXLOsrE9uEmrh2sJi+o+e7TR0OfYuTivjZlMST0g6aNvziDRTBiZ6MWrW1OTLq1LX8Z39lAactK7JJPyG7uB7UrRbE4P7EZsmMz+HmrMuIU+pIialxMcyd2JtMpmRV0aHjMc+wvBUbVVsnV0EyVOpqRxfr7kouRelXIIz X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231022)(10201501046)(6055026)(6041248)(20161123558100)(20161123555025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011); SRVR:BN6PR12MB1508; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN6PR12MB1508; X-Forefront-PRVS: 05079D8470 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(366004)(39860400002)(189002)(199003)(36756003)(72206003)(6486002)(16526018)(5660300001)(101416001)(50226002)(97736004)(8936002)(50986010)(76176010)(8676002)(81156014)(105586002)(81166006)(53936002)(53416004)(16586007)(6666003)(478600001)(106356001)(7736002)(6916009)(2906002)(50466002)(2950100002)(48376002)(52116002)(51416003)(2361001)(305945005)(2351001)(86362001)(68736007)(7696005)(47776003)(25786009)(316002)(3846002)(575784001)(6116002)(189998001)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1508; H:wallaby-smavila.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR12MB1508; 23:wOuDYIXruH6o5Fet6ZzhSoC+366Oeqvclz0WQoTs2?= =?us-ascii?Q?cfEYFjwPH/xCx3uQTo7YsFoDv/eDZUNXJtAY68xrtwl+h4jRkGoGQIcm2rfw?= =?us-ascii?Q?uzuo/u+BXuCrIvO7tyI6AuDbQaW85FXY/Z22vfS1nDQdVPEoJbDUumqSDhwK?= =?us-ascii?Q?R3ZaivSmeURTKAGKUzUYjFyBGwkVxQBUXv2kg1NpwyO2kUTrzpR/u3c2CLuM?= =?us-ascii?Q?DeszUWDfYnzWqNBOg5Bke1s2r+j6M6Y82uLX2uHByRtjReov137mUoAgVhXV?= =?us-ascii?Q?vdtfENGPv8M5hvq/e4kIZEoVbfXl5z7Dy1qZaau4h5m9XfcYnuOMUKf9Ab/A?= =?us-ascii?Q?x4Xw53IrXQiouuASGrmQ1oHLGDFyffHYzIHhDqpgud5Qa3TSC5Y1JLxWI5gs?= =?us-ascii?Q?QISzz7CtwDs1wPq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AQz2/eejutqXQ5XnFCi0GpiH0hTXiTnjxvkFaQLMeRSnWX1EdjfF4HFpnxZFS X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2017 13:13:00.7522 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 431b46e4-1231-4ad1-6953-08d537f41597 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1508 Subject: [dpdk-dev] [PATCH 03/11] crypto: add macros for AES-CMAC and SHA3 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, 30 Nov 2017 13:13:03 -0000 Signed-off-by: Ravi Kumar --- doc/guides/cryptodevs/features/default.ini | 12 ++++++++++++ lib/librte_cryptodev/rte_crypto_sym.h | 18 ++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/doc/guides/cryptodevs/features/default.ini b/doc/guides/cryptodevs/features/default.ini index 18d66cb..cc2cec4 100644 --- a/doc/guides/cryptodevs/features/default.ini +++ b/doc/guides/cryptodevs/features/default.ini @@ -27,6 +27,9 @@ NULL = AES CBC (128) = AES CBC (192) = AES CBC (256) = +AES ECB (128) = +AES ECB (192) = +AES ECB (256) = AES CTR (128) = AES CTR (192) = AES CTR (256) = @@ -61,6 +64,15 @@ AES GMAC = SNOW3G UIA2 = KASUMI F9 = ZUC EIA3 = +AES CMAC = +SHA3_224 = +SHA3_224 HMAC= +SHA3_256 = +SHA3_256 HMAC= +SHA3_384 = +SHA3_384 HMAC= +SHA3_512 = +SHA3_512 HMAC= ; ; Supported AEAD algorithms of a default crypto driver. diff --git a/lib/librte_cryptodev/rte_crypto_sym.h b/lib/librte_cryptodev/rte_crypto_sym.h index c981f0b..03e154f 100644 --- a/lib/librte_cryptodev/rte_crypto_sym.h +++ b/lib/librte_cryptodev/rte_crypto_sym.h @@ -273,6 +273,24 @@ enum rte_crypto_auth_algorithm { RTE_CRYPTO_AUTH_ZUC_EIA3, /**< ZUC algorithm in EIA3 mode */ + /**< SHA3 algorithm support*/ + RTE_CRYPTO_AUTH_SHA3_224, + /**< 224 bit SHA3 algorithm. */ + RTE_CRYPTO_AUTH_SHA3_224_HMAC, + /**< HMAC using 224 bit SHA3 algorithm. */ + RTE_CRYPTO_AUTH_SHA3_256, + /**< 256 bit SHA3 algorithm. */ + RTE_CRYPTO_AUTH_SHA3_256_HMAC, + /**< HMAC using 256 bit SHA3 algorithm. */ + RTE_CRYPTO_AUTH_SHA3_384, + /**< 384 bit SHA3 algorithm. */ + RTE_CRYPTO_AUTH_SHA3_384_HMAC, + /**< HMAC using 384 bit SHA3 algorithm. */ + RTE_CRYPTO_AUTH_SHA3_512, + /**< 512 bit SHA3 algorithm. */ + RTE_CRYPTO_AUTH_SHA3_512_HMAC, + /**< HMAC using 512 bit SHA3 algorithm. */ + RTE_CRYPTO_AUTH_LIST_END }; -- 2.7.4