From: Herbert Xu Subject: Re: [PATCH] crypto: add key wrapping block chaining mode Date: Wed, 22 Apr 2015 13:53:24 +0800 Message-ID: <20150422055324.GA7872@gondor.apana.org.au> References: <6218629.uO4632Hmli@myon.chronox.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-crypto@vger.kernel.org To: Stephan Mueller Return-path: Received: from helcar.hengli.com.au ([209.40.204.226]:46530 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756138AbbDVFx2 (ORCPT ); Wed, 22 Apr 2015 01:53:28 -0400 Content-Disposition: inline In-Reply-To: <6218629.uO4632Hmli@myon.chronox.de> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Wed, Apr 22, 2015 at 06:36:59AM +0200, Stephan Mueller wrote: > > The key wrapping is an authenticated encryption operation without > associated data. Therefore, setting of AAD is permissible, but that data > is not used by the cipher implementation. In that case you should return an error if AAD is provided rather than silently discarding them since by definition AEAD must include the AAD in the integrity value. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt