From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADDEEE9A03B for ; Thu, 19 Feb 2026 09:25:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Subject:References:In-Reply-To:Message-Id:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2FV2SF6OKuwEE2i4+FNX02jkgSbgaaeve46Jl1ZngUM=; b=m2sv3QXkXiZuxg1V/5cREkEddt g2eOoVrx5iGxFxsRHF0gugFkpRoHW7L53uXFqDZhW1ogVb1D/xyof4Usb0aDSxXdDaGEj5Cm6f4x0 8rVhYnX4Xbe6fKjNaCVK1aMguO7bVKc/mNlLvrRHo7rEUskf3qs8u7sk9bIFSd7cGsI0PbfC3zhr4 xNA5/eCXoDGiAIyxonrxKrntZtEyx2rKWdwjY69+Y9H76gUlHkK0Tra5Cy7LEHmI7JB8axmvSLUch HsEQY1doDEQjqQ24s8etOecf8dYXePhxHyYrciS/OUMWWXZx+7B0xZZ0+BFmboca1mDYJser5cqNs TKdeJH8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vt0Hw-0000000BAjt-3Uga; Thu, 19 Feb 2026 09:25:36 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vt0Hu-0000000BAjZ-1nyI for linux-arm-kernel@lists.infradead.org; Thu, 19 Feb 2026 09:25:35 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 8156444154 for ; Thu, 19 Feb 2026 09:25:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16A0FC4CEF7; Thu, 19 Feb 2026 09:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771493133; bh=uNYpNSy7IiidzuikeyFCI5WjXpjW/GUJ+SlkMsxnx94=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=RSxnhAjngAuhei6JodNl5Iv1VfgY6yl1TBuogqOsx0KwHg3NuwpGkfwjAHkqLqgX3 rwSq7nD6MIZPD1WgiIY8pQysDvJIUVOcKiIorkFhdD8J1iIFy/TzsGeCP+9uQJ/DCl jQjOhHCuDKu35VJBJt3bsU6dGxMJdFeGP1jThDqBjJZV/c3hpttqUq4rgbJ2sSr957 m61buTPKf/RahM16DfE5JhAfkTwv0HSVeezKEfzgdOWzoUrlqESS7K2m+h8RE15kPg XyXo9FSFtZ7zb4bHljl915nR8LGrcwy8Cob3+B3CDFvhkKPQB17dvMSQABtubhPJUH FgHavGhRyYsDQ== Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfauth.phl.internal (Postfix) with ESMTP id F11DFF40068; Thu, 19 Feb 2026 04:25:31 -0500 (EST) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-01.internal (MEProxy); Thu, 19 Feb 2026 04:25:31 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvvdehudehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedftehrugcu uehivghshhgvuhhvvghlfdcuoegrrhgusgeskhgvrhhnvghlrdhorhhgqeenucggtffrrg htthgvrhhnpeekvdffkefhgfegveekfedtieffhfelgeetiedvieffhfekfeeikeetueeg teetteenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprghrugdomhgvshhmthhprghuthhhphgv rhhsohhnrghlihhthidqudeijedthedttdejledqfeefvdduieegudehqdgrrhgusgeppe hkvghrnhgvlhdrohhrghesfihorhhkohhfrghrugdrtghomhdpnhgspghrtghpthhtohep kedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohephhgvrhgsvghrthesghhonhguoh hrrdgrphgrnhgrrdhorhhgrdgruhdprhgtphhtthhopegvsghighhgvghrsheskhgvrhhn vghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqrghrmhdqkhgvrhhnvghlsehlihhsth hsrdhinhhfrhgruggvrggurdhorhhgpdhrtghpthhtoheplhhinhhugidqtghifhhssehv ghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqtghrhihpthhose hvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghl sehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqfihirhgvlh gvshhssehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepjhgrshhonhesiiig vdgtgedrtghomh X-ME-Proxy: Feedback-ID: ice86485a:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id D354D700065; Thu, 19 Feb 2026 04:25:31 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: A8bZvXKbNLQo Date: Thu, 19 Feb 2026 10:25:11 +0100 From: "Ard Biesheuvel" To: "Eric Biggers" , linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Jason A . Donenfeld" , "Herbert Xu" , linux-arm-kernel@lists.infradead.org, linux-cifs@vger.kernel.org, linux-wireless@vger.kernel.org Message-Id: <3f1a9deb-3e07-4b4c-8b4e-7dfbba30452c@app.fastmail.com> In-Reply-To: <20260218213501.136844-1-ebiggers@kernel.org> References: <20260218213501.136844-1-ebiggers@kernel.org> Subject: Re: [PATCH 00/15] AES-CMAC library Content-Type: text/plain Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260219_012534_512999_C01C361B X-CRM114-Status: GOOD ( 18.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 18 Feb 2026, at 22:34, Eric Biggers wrote: > This series can also be retrieved from: > > git fetch > https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git > aes-cmac-v1 > > This series adds support for AES CBC-based MACs to the crypto library, > specifically AES-CMAC, AES-XCBC-MAC, and AES-CBC-MAC. The > implementation is fully optimized with the existing > architecture-optimized AES code, either single-block AES en/decryption > or arm64's neon_aes_mac_update() and ce_aes_mac_update(). As usual, > optimizations are now enabled by default as well. > > AES-CMAC support will be useful for at least the SMB client and server, > and the bluetooth and mac80211 drivers. Patches 8-15 convert these > users to use the crypto library API instead of crypto_shash, though > these patches will likely go in via subsystem trees later. They result > in some significant simplifications and performance improvements. > > As usual, a KUnit test suite, FIPS self-test, and traditional crypto API > wrapper algorithms are included as well. > > Note that I'm also planning to add additional AES modes to the library. > This is just an initial set of AES modes to get things started. > Notably, with the SMB client and server already using the SHA* and MD5 > libraries, "cmac(aes)" was the only remaining use of crypto_shash there. > So it makes sense to take care of that. > > Eric Biggers (15): > lib/crypto: aes: Add support for CBC-based MACs > crypto: aes - Add cmac, xcbc, and cbcmac algorithms using library > crypto: arm64/aes - Fix 32-bit aes_mac_update() arg treated as 64-bit > lib/crypto: arm64/aes: Move assembly code for AES modes into libaes > lib/crypto: arm64/aes: Migrate optimized CBC-based MACs into library > lib/crypto: tests: Add KUnit tests for CBC-based MACs > lib/crypto: aes: Add FIPS self-test for CMAC > smb: client: Use AES-CMAC library for SMB3 signature calculation > smb: client: Remove obsolete cmac(aes) allocation > smb: client: Make generate_key() return void > smb: client: Drop 'allocate_crypto' arg from smb*_calc_signature() > ksmbd: Use AES-CMAC library for SMB3 signature calculation > Bluetooth: SMP: Use AES-CMAC library API > wifi: mac80211: Use AES-CMAC library in ieee80211_aes_cmac() > wifi: mac80211: Use AES-CMAC library in aes_s2v() > Reviewed-by: Ard Biesheuvel