From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id DADC6376C for ; Mon, 17 Jul 2017 18:30:03 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP; 17 Jul 2017 09:30:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,375,1496127600"; d="scan'208";a="128375093" Received: from silpixa00399464.ir.intel.com (HELO silpixa00399464.ger.corp.intel.com) ([10.237.222.157]) by fmsmga006.fm.intel.com with ESMTP; 17 Jul 2017 09:29:37 -0700 From: Pablo de Lara To: declan.doherty@intel.com Cc: dev@dpdk.org, Pablo de Lara Date: Mon, 17 Jul 2017 09:29:53 +0100 Message-Id: <20170717082953.74995-3-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170717082953.74995-1-pablo.de.lara.guarch@intel.com> References: <20170717082953.74995-1-pablo.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH 3/3] cryptodev: reorder auth transform 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 Jul 2017 16:30:04 -0000 IV was positioned differently in authentication transform structure, compared to the other two transforms (cipher and AEAD). To keep consistency, digest length is moved to the end of the transform. Signed-off-by: Pablo de Lara --- lib/librte_cryptodev/rte_crypto_sym.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/librte_cryptodev/rte_crypto_sym.h b/lib/librte_cryptodev/rte_crypto_sym.h index ea58cef..58a33b8 100644 --- a/lib/librte_cryptodev/rte_crypto_sym.h +++ b/lib/librte_cryptodev/rte_crypto_sym.h @@ -315,17 +315,6 @@ struct rte_crypto_auth_xform { * (for example RFC 2104, FIPS 198a). */ - uint16_t digest_length; - /**< Length of the digest to be returned. If the verify option is set, - * this specifies the length of the digest to be compared for the - * session. - * - * It is the caller's responsibility to ensure that the - * digest length is compliant with the hash algorithm being used. - * If the value is less than the maximum length allowed by the hash, - * the result shall be truncated. - */ - struct { uint16_t offset; /**< Starting point for Initialisation Vector or Counter, @@ -353,6 +342,17 @@ struct rte_crypto_auth_xform { * */ } iv; /**< Initialisation vector parameters */ + + uint16_t digest_length; + /**< Length of the digest to be returned. If the verify option is set, + * this specifies the length of the digest to be compared for the + * session. + * + * It is the caller's responsibility to ensure that the + * digest length is compliant with the hash algorithm being used. + * If the value is less than the maximum length allowed by the hash, + * the result shall be truncated. + */ }; -- 2.9.4