Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6310963ybf; Thu, 5 Mar 2020 17:52:31 -0800 (PST) X-Google-Smtp-Source: ADFU+vvps71NL/k40MH6EJpnZbcaKlaKohyuh4MdVHKNNHwKO29khwSkwn1Qpjn5wPi+ASwQNdDP X-Received: by 2002:a9d:4783:: with SMTP id b3mr650872otf.212.1583459551104; Thu, 05 Mar 2020 17:52:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583459551; cv=none; d=google.com; s=arc-20160816; b=NXcLV2Pl8sK8eCbvS7vEl7Z+Nnmevbi98T1kWrNnKVJJhI7oWvIgj/3lbf25quwX/P +MrgYbsy5oIWfqU+iWKIYU/IH6qeFrm140Y2hn22KyxV377I5pN7c3hKCikk2oVT/yVz S5lDiFFSLWKSVyTk7SqF7jPLRpVfw2tUnuH1BAALikOXoycZzv8pvwmKT6Iar1ttj9NM UWwaxeS1XPUN1ALrjgBysE3ur/F/5S9SMgBSFv7NsvlzKAK2U/wRqrAQ/nPyy8ewfSru 1QJ0jTjiTPUcj7HYyfDyCSE/LKo2gS/L8BnFIf+z7be21paCM3mN5lb59Xn7GBJY97/P 7jBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=V9jY9Sf2TN1CTHJzK7OKvzVZduV8AyXNVcW3zYp8L8M=; b=mcr9UfQzj/QNHnJF32JgkEK8HVsvmCTeGyAraIcvA3vtodJtmdOIDE549lDvl8gY3J S54YRShSIc4My7GcEacXAaoqTtvQYW+GTOL7+vrLffu1WY/RMk0s9n+pWVvcrhzzfoGa SJLZOXrVb0W61VpYgoyCcOYztyVHikvn3ddgduATpco2ZqmLgwY/7ELmj638cLZl2Mzk f3uFiWTmFjU+f1NdPLSaEmwnuBVvUShuiJrh+5eQd7PQ8Z1251FCvW+Tx04QwGBlSec7 5MS/YRM763qvg3XGcNVo9SVU9i2+um8p83qEuzVkfbm/69NEpPp7GwMxbitabiGiFhcI 59Jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12si459634oij.113.2020.03.05.17.52.19; Thu, 05 Mar 2020 17:52:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726317AbgCFBwS (ORCPT + 99 others); Thu, 5 Mar 2020 20:52:18 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:46164 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbgCFBwS (ORCPT ); Thu, 5 Mar 2020 20:52:18 -0500 Received: from gwarestrin.me.apana.org.au ([192.168.0.7] helo=gwarestrin.arnor.me.apana.org.au) by fornost.hmeau.com with smtp (Exim 4.89 #2 (Debian)) id 1jA29p-0005uw-Cd; Fri, 06 Mar 2020 12:52:10 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 06 Mar 2020 12:52:09 +1100 Date: Fri, 6 Mar 2020 12:52:09 +1100 From: Herbert Xu To: Andrei Botila Cc: Horia Geanta , Aymen Sghaier , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Andrei Botila , stable@vger.kernel.org Subject: Re: [PATCH] crypto: caam - update xts sector size for large input length Message-ID: <20200306015209.GL30653@gondor.apana.org.au> References: <20200228104648.18898-1-andrei.botila@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200228104648.18898-1-andrei.botila@oss.nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Feb 28, 2020 at 12:46:48PM +0200, Andrei Botila wrote: > From: Andrei Botila > > Since in the software implementation of XTS-AES there is > no notion of sector every input length is processed the same way. > CAAM implementation has the notion of sector which causes different > results between the software implementation and the one in CAAM > for input lengths bigger than 512 bytes. > Increase sector size to maximum value on 16 bits. > > Fixes: c6415a6016bf ("crypto: caam - add support for acipher xts(aes)") > Cc: # v4.12+ > Signed-off-by: Andrei Botila > --- > This patch needs to be applied from v4.12+ because dm-crypt has added support > for 4K sector size at that version. The commit was > 8f0009a225171 ("dm-crypt: optionally support larger encryption sector size"). > > drivers/crypto/caam/caamalg_desc.c | 16 ++++++++++++++-- > 1 file changed, 14 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt