Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp964307pxb; Thu, 17 Feb 2022 19:56:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZIs19E9UJZS2YYCa5C+UhnNSJg/UGrWQpTv1dwUuBhHeLcKnatMFwi+Hiwz/r11bGwHz0 X-Received: by 2002:a63:f715:0:b0:36c:6a53:7c7 with SMTP id x21-20020a63f715000000b0036c6a5307c7mr4970039pgh.183.1645156617484; Thu, 17 Feb 2022 19:56:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645156617; cv=none; d=google.com; s=arc-20160816; b=sGZgKGg1ddY+2X4ye/i/Rq0Rt3dwAu5AzcF3Q2ZLrw7sUdwIBskTqHwZv7QkuBXPj/ 61XTgnnF1bf3qEefPCQrKWdUL2la0p2ViydpsGQwNnThoVC2+wPuBARZyUn5/aBKv4HV EU6aAs0V6bAsKKWo6mk9Igi+ztr195NFcd64mFsH3TVU34hmuxlVBuPkAFwN2r5iwzey RODicMVCz2Q2Zy5s03vTn+XBBRH8D7aO3nSBgLeeZ+3FGBaQmLyqB+gYaDcHenpQL34m VSxMAz5eNsXXqWnuPwAWUueFi0NrMKofhR0ipB0jIG+1sveVJ+trPvBJI0PgBA1REwM2 K5gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=AG4OAgSwWYnTaPoQygOWYxtHwubKofhUXCRyqbVDDBA=; b=N36/RxweEL32RniG9qyzpcqUFN5Il91qP6bjfmXY2HJClYtS4HEYP67i8Knvry43wA EO83uVp+YeSE6YUHnofdB5QBsMAgOTcZzrvrJH3WTSVEWxImON/KyXFjkye8RIRHwHiQ tB5GQINjN7OHejjHkmfSepPwaoXsXlpVm7Ei0ICAPP806ag3/CUcc2zK658Dajr5eGU4 /IpB0Wf1yIVmaoP/4FVt4sheZOibhU7xwhh6MalZlJzFsej0t9YC07yTzLnN0LBGy0k/ X9+iPD5PSPL3O62OOzIR37ATB3HFKagwedV29m+QsM/PhmhH0QpHZCUPIP757TzbFB0v mjNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k189si1348769pfd.128.2022.02.17.19.56.28; Thu, 17 Feb 2022 19:56:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229489AbiBRD4G (ORCPT + 99 others); Thu, 17 Feb 2022 22:56:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiBRD4G (ORCPT ); Thu, 17 Feb 2022 22:56:06 -0500 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E84E92E59DC; Thu, 17 Feb 2022 19:55:49 -0800 (PST) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1nKuMu-0003r4-4Z; Fri, 18 Feb 2022 14:55:41 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 18 Feb 2022 14:55:39 +1100 Date: Fri, 18 Feb 2022 14:55:39 +1100 From: Herbert Xu To: Gilad Ben-Yossef Cc: Corentin Labbe , David Miller , Linux Crypto Mailing List , Linux kernel mailing list Subject: Re: [PATCH] crypto: ccree: fix xts-aes-ccree blocksize Message-ID: References: <20220209070608.985213-1-clabbe@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Feb 17, 2022 at 09:36:41PM +0200, Gilad Ben-Yossef wrote: > Hi Again, > > Thank you for taking the time to look into this! > > However, this is an old topic that has been discussed before and the > answer really is that the selftests are wrong. They are looking at the > wrong thing. Yes, I know... > > See the discussion here: > https://www.mail-archive.com/linux-crypto@vger.kernel.org/msg40576.html > > I also also point out this is actually documented in the code: > > + /* See > https://www.mail-archive.com/linux-crypto@vger.kernel.org/msg40576.html > + * for the reason why this differs from the generic > + * implementation. > + */ Indeed. We should instead change the generic algorithm as well as the other drivers that implement XTS. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt