Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1976849rwn; Fri, 16 Sep 2022 04:00:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM49UFOaPjKM2CC6qjtA4vMlXJSulgQZ+KQjjMIRPTbSOtrcapgJ5eB1cOO8yQqGtpOswlf4 X-Received: by 2002:a05:6402:510c:b0:451:f363:24ee with SMTP id m12-20020a056402510c00b00451f36324eemr3558385edd.156.1663326029893; Fri, 16 Sep 2022 04:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663326029; cv=none; d=google.com; s=arc-20160816; b=N5v1IyxMcc9esa2N6MEZLbzbMTX95lMnVvjlorZ116nHjjfIud77zNBJbdOzTE2hvf SFcmQI+3LOhEnjZzLJUuRbt2Ysx5D59vIhcFPlgI5J/8b+DtcFFRZztWLYozO4u/w60N 6miBJu7zgVevepHMFfOOoAHZ5FUfjIqaLtyAUdObJLS0ZpQ+V2SjLWIEgZf1YaD9O7K2 mkaAF81Y79lLy8V5BIe66mr2jMXOlR193zOb9jx5eSuQEGpoish4eBzh+l4dxVHCTs7v 308MviQWlDU2ZsHqfotRPhivBKohmic4TSOl2Cwp+bhXOPWCXsP+bNa14VULo3MGVnBn yMFw== 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=I3QExrQbkLrPBqgCnpIz/YGMBHJx8TvYknaqGDgsIlI=; b=IKaIkQodCGNLPwjd4EyIMQBBvUxE0x0X0/43LzDlZOg2V89ZVg//U5SyE9H0v7VZ48 Q29JH7jcwAO2ZWKTnrCFRn/DtDzIOmrKe/efURDUR4kRlkYuOvK0PtFKfS954aNGLTrv QyVqu+iC5Mwnc/CZrkH6BSnstqF409WVMOLeWjcvauZHFAmwQggjb1aCHWm+wsa/8/EB iC8geV1AeP3df959R3lQYp9Erd6YRuIywYttym89BzVqrI1dY+Ws10vMMjiXFhBD/JQE ZWJnjJT9PKutOY123Asj0iWvD4YevR76pstfhzyqT6p3Vskl0UuisJEtfrM6wLZjd+Ut Zr+w== 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 s3-20020a17090699c300b0077d1df3967asi12443198ejn.563.2022.09.16.04.00.04; Fri, 16 Sep 2022 04:00:29 -0700 (PDT) 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 S229872AbiIPKyH (ORCPT + 99 others); Fri, 16 Sep 2022 06:54:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbiIPKxv (ORCPT ); Fri, 16 Sep 2022 06:53:51 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD714AFAC6 for ; Fri, 16 Sep 2022 03:36:38 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1oZ8i3-005GwM-1K; Fri, 16 Sep 2022 20:36:36 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 16 Sep 2022 18:36:34 +0800 Date: Fri, 16 Sep 2022 18:36:34 +0800 From: Herbert Xu To: Peter Harliman Liem Cc: atenart@kernel.org, linux-crypto@vger.kernel.org, linux-lgm-soc@maxlinear.com Subject: Re: [PATCH v2] crypto: inside_secure - Change swab to swab32 Message-ID: References: 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 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 Tue, Sep 06, 2022 at 10:51:28AM +0800, Peter Harliman Liem wrote: > The use of swab() is causing failures in 64-bit arch, as it > translates to __swab64() instead of the intended __swab32(). > It eventually causes wrong results in xcbcmac & cmac algo. > > Fixes: 78cf1c8bfcb8 ("crypto: inside-secure - Move ipad/opad into safexcel_context") > Signed-off-by: Peter Harliman Liem > --- > v2: > Add fixes tag > > drivers/crypto/inside-secure/safexcel_hash.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 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