From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Xu Subject: Re: [PATCH -stable] crypto: ccm - deal with CTR ciphers that honour iv_out Date: Thu, 2 Feb 2017 17:53:52 +0800 Message-ID: <20170202095352.GA4818@gondor.apana.org.au> References: <1485636005-5192-1-git-send-email-ard.biesheuvel@linaro.org> <20170202051300.GA4349@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "linux-crypto@vger.kernel.org" To: Ard Biesheuvel Return-path: Received: from helcar.hengli.com.au ([209.40.204.226]:53181 "EHLO helcar.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751019AbdBBJyG (ORCPT ); Thu, 2 Feb 2017 04:54:06 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On Thu, Feb 02, 2017 at 08:01:47AM +0000, Ard Biesheuvel wrote: > > You are right: due to its construction, the CCM mode does not care > about the incremented counter because it clears the counter part of > the IV before encrypting the MAC. So this is caused by an optimization > in my code rather than the CCM code being incorrect. OK so you will send me an update for the ARM64 code, right? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt