Message ID | 20201117122114.510330023@linuxfoundation.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp4189118ils; Tue, 17 Nov 2020 05:59:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlCZtJOg9UU/f6F5OaMwx0ePhdPsA5Cjafi6c8/Nvm60hLA4z2tztTfAI4nL4TcVU1l+Z/ X-Received: by 2002:aa7:d64c:: with SMTP id v12mr11266517edr.285.1605621591029; Tue, 17 Nov 2020 05:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605621591; cv=none; d=google.com; s=arc-20160816; b=U7vC7sF6jM3RugXKT5I3y8YQ1oMVbFLWZ14KKRlZY+rj9mH6sHC81TWHOJn0IP96lD jF2aQdgBkwg/m6+TflR/Ji9jbj7KfR6DkogqQfUUgvfgoXRYdV3rZa4mxMbehdIpazBt SBg2Fh2qFlq54rLFqfDVsdey3dQPLSpPKFdSgM1spa2U1oG+by4XMpfnMNLAncYNqr3S OacznHDDcK92l/ABqplZF4Yh5jaIQIbxKbTPT7fvyRTvedzvn54QAIy+Po4HH0wbmpk2 nGG+UJQ8Vlcr22dmYQW7n+FM1jxUiskABsuHpaETSKAkeOR+RGNVp7G8WH7UrkQmAr2I o6nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GebFlNE+8EruzsG+K/ebrWnaolsSVI2uVW9VhVLBB7g=; b=EDej981bfMxA2HgBvjDjmnE2Qjzpd9zuCRAn5zvk6jCD+N+pZLCs7BGJhiT0p8Q0kw zGaY7km2SVhfFELLPadxkFMHInm/txmAXSSIYhinnqNlNXJ+60EBKksPf0haYl2TFty1 mHPyRaGrmI3f1V3PhAUN5PFxP+m0J9p/3/esgzAefmiRVD9qRO20WzeBAoaZvU8R6195 4R44Ev77dFIB502ifOv0NSPIxvxAfV4gWsyGMBzzF1WQj00ENVHklGFb7nm9qakKbGhv Y9FrMQGGeBv+wFzGbuus6GI+RAWtyo1qo476shWUxtuLvWctJWsfMVQ/7jxGg4hFAqMg A4Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qfgn3Nbv; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si3146998ejb.238.2020.11.17.05.59.50; Tue, 17 Nov 2020 05:59:51 -0800 (PST) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qfgn3Nbv; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730692AbgKQN7G (ORCPT <rfc822;semen.protsenko@linaro.org> + 14 others); Tue, 17 Nov 2020 08:59:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:51058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730670AbgKQNS0 (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 17 Nov 2020 08:18:26 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 52B5B24654; Tue, 17 Nov 2020 13:18:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605619105; bh=O8sN/Fj7w+5g61Gjf9SEq4lrUkuxb/eAuuxjUzW77+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qfgn3NbvhhyTc8spwsyTYbNl+XWrzkULpLIt/vN31h3pUKD3Ayzfuwh+s4oRFhj6F Tyj8SknAex9ICLU1tygWOiO7IcgpGUzFcMQpacyIOyJhJBM6/XXN7V3mdPHwKyOhJT 7sUPGFlzNxu0USkQH0OHBXQG23b85Yx3Tq9aTfak= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Nick Desaulniers <ndesaulniers@google.com>, Ard Biesheuvel <ard.biesheuvel@linaro.org>, Herbert Xu <herbert@gondor.apana.org.au> Subject: [PATCH 4.19 029/101] crypto: arm64/aes-modes - get rid of literal load of addend vector Date: Tue, 17 Nov 2020 14:04:56 +0100 Message-Id: <20201117122114.510330023@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122113.128215851@linuxfoundation.org> References: <20201117122113.128215851@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/arch/arm64/crypto/aes-modes.S +++ b/arch/arm64/crypto/aes-modes.S @@ -232,17 +232,19 @@ AES_ENTRY(aes_ctr_encrypt) bmi .Lctr1x cmn w6, #4 /* 32 bit overflow? */ bcs .Lctr1x - ldr q8, =0x30000000200000001 /* addends 1,2,3[,0] */ - dup v7.4s, w6 + add w7, w6, #1 mov v0.16b, v4.16b - add v7.4s, v7.4s, v8.4s + add w8, w6, #2 mov v1.16b, v4.16b - rev32 v8.16b, v7.16b + add w9, w6, #3 mov v2.16b, v4.16b + rev w7, w7 mov v3.16b, v4.16b - mov v1.s[3], v8.s[0] - mov v2.s[3], v8.s[1] - mov v3.s[3], v8.s[2] + rev w8, w8 + mov v1.s[3], w7 + rev w9, w9 + mov v2.s[3], w8 + mov v3.s[3], w9 ld1 {v5.16b-v7.16b}, [x20], #48 /* get 3 input blocks */ bl aes_encrypt_block4x eor v0.16b, v5.16b, v0.16b