Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5508968pxj; Wed, 26 May 2021 12:12:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEjIJc52MHd61hU7pljT+/ssewaOrYcrvRlJHaa/21ptwZrzcfuUvVanN67/vuVNtj10NG X-Received: by 2002:a17:906:b74e:: with SMTP id fx14mr35118884ejb.104.1622056376710; Wed, 26 May 2021 12:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622056376; cv=none; d=google.com; s=arc-20160816; b=WQqb37FuLWWqcYH39q0mamd0/20/MhzeHamJxTjgymZ6FXDw+rmgLxIABOJ2RpLh5r G/uw9xyDtsJu+5nrhmuH4N1ofgLHR3roqhktePqIZkgid9WPLrrd09215t7wAgu5pe4d tUzmYzRR9IIgc7RPumM74zIAB4SKvxV99PwAv1JLwNKy+JTA48tNoVPQMi/FUUH/2kjq 50RW5IRm4pDEDhC9fWlMCKbIVS0F/wlqoqRNGe/VxVNH06gsHxq7isIhxe8jAUrcMETL tbdh/W3wj1XaZqNMBQVgK4Jfl2o5FYdWG4duNHcxLDT5XMR3s6WTYcfXTjYJQpWSXSb2 ovVw== 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:dkim-signature; bh=FfYsBLvCNOYM//b/G0jinHqqOUZQ76bOtj9t7iVbmBk=; b=S8aTI8XtGWKc0bzG58jKwmPDwZtxvtXsgcmCpnbSM4eZ0OvEaLD5KQ4n3bTOFYqO8M xAaCAOLT9zZeeYknlK6LvdBGFUDgf8MBF2mtoFxHg2vPBN+HZ2RZVXdLKyk4pfNuEE5/ vJ+X+UiVQxs+YCfdni7UIc4Eb0lFC5y91PbSmA02jQnzXdRmHa/FiKHYstqTagb/tZjT g6nqrZCP3Ed1zc9AwW0L1N5XNTj9/5k9xRqbsQhwG2OAfWLEQVz8Qv8eJU8rXLbHZREI +Cq2+mHMaqVoVo7qvDxtOlnfzsyaoBH68+Wxzd0Gn4OCKLoRPENQhEezORv1U8v5UvVB ky8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GNtglhlG; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cn17si183545edb.73.2021.05.26.12.12.25; Wed, 26 May 2021 12:12:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=k20201202 header.b=GNtglhlG; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234350AbhEZRTl (ORCPT + 99 others); Wed, 26 May 2021 13:19:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:48532 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234273AbhEZRTl (ORCPT ); Wed, 26 May 2021 13:19:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9B0E7611B0; Wed, 26 May 2021 17:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622049489; bh=fue/kOF/ZOdJ77PEzAFEhm+XX/PeZi69M1P5v2+QnWc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GNtglhlGxNzBlWnhUrmXDUMYf+jw6Yb9kZCSfhNTKjIMYYrFpSwiBELyDeJVhCqBM QlUpwdnA3i3wKMw/xPZIbz5WpRK2+vBFFm0FY1YEfxOuJbxGtR2kyP7tlSUJJltR2S FMJkjYncZARKnS6MtC4WS5vwk5GSMjdo39C508zlU/FFjGb1qzytdmYy/yo/PvunDU b6F2q+9W+Wbiq1w9+z7ZkOYJ2acjt68HN4BQ+8tS5pOl8QLApujRrV4Uh/x+PbswFV B6t2EaX2Sre7vkeHAzWbRzR67wwgvdVgg3ofmHde+wYYG7ULOEa1adUiluRzcb0rGW h3f2jJCEivs/A== Date: Wed, 26 May 2021 10:18:08 -0700 From: Eric Biggers To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, herbert@gondor.apana.org.au, will@kernel.org, kernel-team@android.com Subject: Re: [PATCH v6 6/6] crypto: arm64/aes-ccm - avoid by-ref argument for ce_aes_ccm_auth_data Message-ID: References: <20210526100729.12939-1-ardb@kernel.org> <20210526100729.12939-7-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210526100729.12939-7-ardb@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, May 26, 2021 at 12:07:29PM +0200, Ard Biesheuvel wrote: > With the SIMD code path removed, we can clean up the CCM auth-only path > a bit further, by passing the 'macp' input buffer pointer by value, > rather than by reference, and taking the output value from the > function's return value. > > This way, the compiler is no longer forced to allocate macp on the > stack. This is not expected to make any difference in practice, it just > makes for slightly cleaner code. > > Signed-off-by: Ard Biesheuvel > --- > arch/arm64/crypto/aes-ce-ccm-core.S | 23 ++++++++++---------- > arch/arm64/crypto/aes-ce-ccm-glue.c | 17 +++++---------- > 2 files changed, 17 insertions(+), 23 deletions(-) Reviewed-by: Eric Biggers