From patchwork Tue May 19 12:05:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dybkowski, AdamX" X-Patchwork-Id: 70427 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0E4E1A0093; Tue, 19 May 2020 14:08:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B9FCC1D5FA; Tue, 19 May 2020 14:07:52 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 5C1B81D17A; Tue, 19 May 2020 14:07:49 +0200 (CEST) IronPort-SDR: JlBkIb5Yvw/ecPE8CMOYVHIVSBEVaZEDq2QA5b1HzyOrqBZPQBAMnDI/HxQLeeir5QWQgxK8zj WbLss9ZrK1uw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2020 05:07:49 -0700 IronPort-SDR: m8Y+FYtpKvG/+s+DtmBkcRI2XHxpfOm9tUm/g/CLStU5rOtO7DEPOItkWyJn8+t43NuRtHUSvI EfngGsBVU05g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,410,1583222400"; d="scan'208";a="282302361" Received: from adamdybx-mobl.ger.corp.intel.com (HELO addy-VirtualBox.ger.corp.intel.com) ([10.104.125.83]) by orsmga002.jf.intel.com with ESMTP; 19 May 2020 05:07:48 -0700 From: Adam Dybkowski To: dev@dpdk.org, fiona.trahe@intel.com, akhil.goyal@nxp.com Cc: Adam Dybkowski , stable@dpdk.org Date: Tue, 19 May 2020 14:05:46 +0200 Message-Id: <20200519120546.3445-2-adamx.dybkowski@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200519120546.3445-1-adamx.dybkowski@intel.com> References: <20200519120546.3445-1-adamx.dybkowski@intel.com> Subject: [dpdk-dev] [PATCH v2 1/1] cryptodev: fix SHA-1 digest enum comment 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes improper SHA-1 digest size in the enum comment and also adds the note about HMAC-SHA-1-96. Fixes: 1bd407fac80b ("cryptodev: extract symmetric operations") Cc: stable@dpdk.org Signed-off-by: Adam Dybkowski --- lib/librte_cryptodev/rte_crypto_sym.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/librte_cryptodev/rte_crypto_sym.h b/lib/librte_cryptodev/rte_crypto_sym.h index d9585ecd6..db5c5f5b8 100644 --- a/lib/librte_cryptodev/rte_crypto_sym.h +++ b/lib/librte_cryptodev/rte_crypto_sym.h @@ -269,9 +269,10 @@ enum rte_crypto_auth_algorithm { /**< HMAC using MD5 algorithm */ RTE_CRYPTO_AUTH_SHA1, - /**< 128 bit SHA algorithm. */ + /**< 160 bit SHA algorithm. */ RTE_CRYPTO_AUTH_SHA1_HMAC, - /**< HMAC using 128 bit SHA algorithm. */ + /**< HMAC using 160 bit SHA algorithm. + HMAC-SHA-1-96 can be generated by setting digest_size to 12. */ RTE_CRYPTO_AUTH_SHA224, /**< 224 bit SHA algorithm. */ RTE_CRYPTO_AUTH_SHA224_HMAC,