Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp599189rda; Sun, 22 Oct 2023 01:19:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeuq2rQIVxMPJAWiL+0ygx8D6ryOzppnPPynRibEaxFngdkz47eJzWU8qOxaR9aLi8781o X-Received: by 2002:a05:6808:aae:b0:3b2:db61:ff8e with SMTP id r14-20020a0568080aae00b003b2db61ff8emr6385749oij.33.1697962758680; Sun, 22 Oct 2023 01:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697962758; cv=none; d=google.com; s=arc-20160816; b=u4G0JlTXhoOfdfZsh29JUct+K56O2+JPllmOlMatBpWCvsG4yBogeRnoNO2ChPUV8h xjD0C5/RCbZNwzNsWNmnml+aMgPOPvrlUQ7En7w96IeGD6eKbZZwUm2Jyg8kMQIK6rjy 3DAPXQfk1PFfHUhkUnUpjNWEdlF1rgJQtNkiRSQ0k3dfim7ySxaby2PuWRDg3QpJe/ZV JjF+SwHCZjd/om8FHfUA3uwVwC0cJAGAXRvyM58f7UVQva0z8QOhhN23ld349Nexs+r3 hYDjJh3r0yv4zfWRAnr3PvnIkWr0LCM2BWkgYkAOkSFbSGeeBYNCRdMESaTdtCJyeXaB fXlQ== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=A/07jL7jhiybDQw6ssg1GSCoJEhmjhm9OtFArVtlLzA=; fh=uKl1CTlin8qnxt56ErGp3UOINPCBskOXHDuKvJLDQbo=; b=0pVIf/wWL6+hdHTuXzgA7oMz394LrSIYQIYaruKtItwayc50pqgUyrQiKwVOBDBETb A6CZLPExkonp/jnXGzrydpP60rvNdVo+tdBkws14Pt4+OajySCmdTHp0BFCylrw9s4lC ALpv9xno7lJ5MyRKwUIpisuvf+Qpuece3rwRLEehmiZnfKLIvgL5F1PEhLKWIA7r48Wv IVKvigAIMmH5VdWvcuSYJmBN74nrAkvXL5UBSvQtpI3qNT83IgQh4vJu0BML/IlvFmT3 IRf6iQ0XaJIpEZqXg+dpMJYoM3SLDuIfttENhgxJIIVR8QG/zr6MBisvlFGxbdZJUoQw V/mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SsGmdPrz; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id j14-20020a170903024e00b001c7249f5e40si4710055plh.469.2023.10.22.01.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 01:19:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SsGmdPrz; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A9D888086808; Sun, 22 Oct 2023 01:19:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231678AbjJVITJ (ORCPT + 99 others); Sun, 22 Oct 2023 04:19:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231684AbjJVISw (ORCPT ); Sun, 22 Oct 2023 04:18:52 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB0261A3 for ; Sun, 22 Oct 2023 01:18:48 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88496C433CA for ; Sun, 22 Oct 2023 08:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697962728; bh=G3cmf2bNwDRiorWVX3Gfw9Cf5KsHz9Me8snVNz2tvck=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SsGmdPrzzxa2KkLJXa0WkXD9qOJeOAygHy+rvtFOsIe0rKzSUG1dHv846XAB87PQR 21wZt9cxbBIUIvVp+URF2qfUWWBEigSm2FCA6Y6THeDBCbLRjrDX9YCXQt9a1SW1+Y cHnaCW7GC+SXCDMZkvp9m+IUvZBqKK8SK5QkKMugGAgdqOLV1Plbp2cnUzn4mnNcJF 7G8QpnQFHN5l6kfVTKFdzzwC2qsbwAJx+sDh26BGsDkHQtclGfqQzuaTNp2A7YyqCX xjPnhw8MWXnm13c+IGkbWK2+bfwJktTLNjyPzHWeR4/n33J8G0qh71sGifLu8FgBEw +FJrFKuYVX27w== From: Eric Biggers To: linux-crypto@vger.kernel.org Subject: [PATCH 23/30] crypto: ahash - remove crypto_ahash_alignmask Date: Sun, 22 Oct 2023 01:10:53 -0700 Message-ID: <20231022081100.123613-24-ebiggers@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231022081100.123613-1-ebiggers@kernel.org> References: <20231022081100.123613-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 22 Oct 2023 01:19:15 -0700 (PDT) From: Eric Biggers crypto_ahash_alignmask() no longer has any callers, and it always returns 0 now that neither ahash nor shash algorithms support nonzero alignmasks anymore. Therefore, remove it. Signed-off-by: Eric Biggers --- include/crypto/hash.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/crypto/hash.h b/include/crypto/hash.h index d3a380ae894ad..b00a4a36a8ec3 100644 --- a/include/crypto/hash.h +++ b/include/crypto/hash.h @@ -335,26 +335,20 @@ int crypto_has_ahash(const char *alg_name, u32 type, u32 mask); static inline const char *crypto_ahash_alg_name(struct crypto_ahash *tfm) { return crypto_tfm_alg_name(crypto_ahash_tfm(tfm)); } static inline const char *crypto_ahash_driver_name(struct crypto_ahash *tfm) { return crypto_tfm_alg_driver_name(crypto_ahash_tfm(tfm)); } -static inline unsigned int crypto_ahash_alignmask( - struct crypto_ahash *tfm) -{ - return crypto_tfm_alg_alignmask(crypto_ahash_tfm(tfm)); -} - /** * crypto_ahash_blocksize() - obtain block size for cipher * @tfm: cipher handle * * The block size for the message digest cipher referenced with the cipher * handle is returned. * * Return: block size of cipher */ static inline unsigned int crypto_ahash_blocksize(struct crypto_ahash *tfm) -- 2.42.0