From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan Mueller Subject: Re: [PATCH] crypto: AEAD: add check for presence of auth tag Date: Mon, 05 Jan 2015 11:53:38 +0100 Message-ID: <1656062.b6mnFyMzhb@tachyon.chronox.de> References: <15957213.Wu7Np8vQse@tachyon.chronox.de> <7639295.Yx6QIQScqO@tachyon.chronox.de> <20150105103957.GA25307@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: 'LKML' , linux-crypto@vger.kernel.org To: Herbert Xu Return-path: Received: from mail.eperm.de ([89.247.134.16]:59367 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753235AbbAEKxt (ORCPT ); Mon, 5 Jan 2015 05:53:49 -0500 Received: from tachyon.chronox.de by mail.eperm.de with [XMail 1.27 ESMTP Server] id for from ; Mon, 5 Jan 2015 11:53:44 +0100 In-Reply-To: <20150105103957.GA25307@gondor.apana.org.au> Sender: linux-crypto-owner@vger.kernel.org List-ID: Am Montag, 5. Januar 2015, 21:39:57 schrieb Herbert Xu: Hi Herbert, > On Mon, Jan 05, 2015 at 11:26:48AM +0100, Stephan Mueller wrote: > > Could you please help me understand where that check should be and what > > should be done at the crypto API level? > > All I was asking for is a length check like the one at the top > of crypto_authenc_decypt. Could you please check: I am unable to find the function. Note, there is no size parameter provided in crypto_aead_decrypt. To obtain the size, I would need to walk the scatterlists, no? > > Cheers, -- Ciao Stephan