From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tadeusz Struk Subject: Re: [v2 PATCH 5/13] crypto: testmgr - Switch to new AEAD interface Date: Thu, 04 Jun 2015 15:15:19 -0700 Message-ID: <5570CDF7.4090308@intel.com> References: <20150522082708.GA3507@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Herbert Xu , Linux Crypto Mailing List , netdev@vger.kernel.org, "David S. Miller" , Johannes Berg , Marcel Holtmann , Steffen Klassert , Stephan Mueller Return-path: In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Hi Herbert, On 05/22/2015 01:30 AM, Herbert Xu wrote: > This patch makes use of the new AEAD interface which uses a single > SG list instead of separate lists for the AD and plain text. The fact the src and assoc point to the same sgl causes some inconsistency. The input I'm getting is: req->old = 1 req->src_nents = 1 req->src_len = 80 req->dst_nents = 1 req->dst_len = 80 req->assoclen = 0 but req->assoc_nents = 1 req->assoc_len = 80 I presume req->assoc is obsolete now and drivers need to use req->assoclen. right? Currently I just loop over req->assoc to get the AD. regards, T