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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (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 E7AC8C83033 for ; Mon, 30 Jun 2025 17:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:Message-ID:Date:To:Sender: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ujaHt8saqVzoEQgffwSdDZC5EOG1BcV6rP61Ra50uuI=; b=TFzNAkw681N0if+jjlByBCmFh2 lP3/tKSHaECrqlHUpN2Laxy6EqGl9AfudyhUSKs3ononkYu8pGRl2L51Ac57lOxtiP+PX1PHpIa+w pvs0+tAYsp0NfzDrmwLaiMLG5lrW3e23/afaylNqs5Xlxjo5OXdiAr9WvJyeULrrtN1I=; Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1uWIEv-0007wZ-If; Mon, 30 Jun 2025 17:24:21 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1uWIEt-0007wS-Sg for linux-f2fs-devel@lists.sourceforge.net; Mon, 30 Jun 2025 17:24:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yQAv8cM0l0mTxDkHsZ/IaYm3X9qJp26A6tXCfMKcNqM=; b=GdnWbM0ahM8VslsSEHTt5+rUyE Ih4FF1OsudGslxkUlwRkvDoxAu6/pgcVjliLBDhA6itb6xv7dyYwbLkGFJVWksaNYUqQRWNdRgqHC y0dz4QN2cpgq8JBwSxRIuvuYezjQRxtjnRrXtz6S48OGW3BEKLwTBnlTig5s8EbHyiHE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=yQAv8cM0l0mTxDkHsZ/IaYm3X9qJp26A6tXCfMKcNqM=; b=V A8nLx2m81J4zhwnnl8FqNdHO40SDyJxTgbju5adUh6oLEg8xNq5OVqHAzIFOPKPs/m9sA2ROIwybU cF4/X/TpkBuAHUIXkfllOdPbQlK90vY2AtWPjFC6ESjTCc6ZA9ChwA2HEgNuLg4oEkmPDItrpwdck 5H5saJF4fKA+HnAg=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1uWIEt-0005oe-Br for linux-f2fs-devel@lists.sourceforge.net; Mon, 30 Jun 2025 17:24:19 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id EF7E15C6460; Mon, 30 Jun 2025 17:24:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F0F1C4CEE3; Mon, 30 Jun 2025 17:24:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1751304248; bh=2ss1z+u5lNz4mtpxqOkRg3/823azXS0wN/bTXoBHKxY=; h=From:To:Cc:Subject:Date:From; b=s+dvIOd6tblfiP+FP5N3YqoXcALT9orqIV2/EdJGByixJ+wy2EpolTgjDbQiQBNdC /041gDK/TVoafEDYTGqo/lw91xjV+QIB+hAsyWJK9MOaE7M+vryw0pzRgN7ZWHrq2D fcBnjz2YShIC0Giw0nfbbtQxtontWDOyc9pLKIe4I71FKF4PZ4WPvS6uczM3wQ2q4j pTzaZYjRj98jZg06wWJouMvOpUpGVJhvH0/0USGnxgQCypu1sAr4/nAu5nd8M+aLpi Htk4dm8mQa2CX5FwFpXNOo+P8P5oMwjgZzVze8wdYacN3J2xnCRFfxQn1aKShmLCje 3mdc0OzLVjbaA== To: fsverity@lists.linux.dev Date: Mon, 30 Jun 2025 10:22:22 -0700 Message-ID: <20250630172224.46909-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.50.0 MIME-Version: 1.0 X-Headers-End: 1uWIEt-0005oe-Br Subject: [f2fs-dev] [PATCH 0/2] Convert fs/verity/ to use SHA-2 library API X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eric Biggers via Linux-f2fs-devel Reply-To: Eric Biggers Cc: "Jason A . Donenfeld" , Theodore Ts'o , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Eric Biggers , linux-crypto@vger.kernel.org, linux-ext4@vger.kernel.org, Ard Biesheuvel , linux-btrfs@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net This series, including all its prerequisites, is also available at: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git fsverity-libcrypto-v1 This series makes fs/verity/ use the SHA-2 library API instead of the old-school crypto API. This is simpler and more efficient. This depends on my SHA-2 library improvements for 6.17 (many patches), so this patchset might need to wait until 6.18. But I'm also thinking about just basing the fsverity tree on libcrypto-next for 6.17. Eric Biggers (2): lib/crypto: hash_info: Move hash_info.c into lib/crypto/ fsverity: Switch from crypto_shash to SHA-2 library Documentation/filesystems/fsverity.rst | 3 +- crypto/Kconfig | 3 - crypto/Makefile | 1 - fs/verity/Kconfig | 6 +- fs/verity/enable.c | 8 +- fs/verity/fsverity_private.h | 24 +-- fs/verity/hash_algs.c | 194 +++++++++---------------- fs/verity/open.c | 36 ++--- fs/verity/verify.c | 7 +- lib/crypto/Kconfig | 3 + lib/crypto/Makefile | 2 + {crypto => lib/crypto}/hash_info.c | 0 12 files changed, 107 insertions(+), 180 deletions(-) rename {crypto => lib/crypto}/hash_info.c (100%) -- 2.50.0 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel