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 X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,FSL_HELO_FAKE,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22753CA9EAF for ; Mon, 21 Oct 2019 20:27:58 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E9CCC2067B for ; Mon, 21 Oct 2019 20:27:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="eeXnxaRL"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="XdtMEsZX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9CCC2067B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bXugPXcygfvdiN12LgqnNLBfXOi2qzFFcIwT9hOYzWw=; b=eeXnxaRLGqcj7r 7q/74VHHXfWxMSKW7s5r9mbk0tFjR5xAco7ct8Q0YKIvYj0ixhS8PNAUb68LYkzzKz6DD5/s4DpkM bgVYhlg71P7xXV+GabY6THsQSCjhfdGDSKidrZe0dQ19QmZWboItIIdOVdQAqh1Kg0qh1dVB2uDyo 2E/IcnsbB6snoX/2VZs5wWD9qFx7viEUtmOm5sgISddIlGWMxf/ywW2wh5ODy3n5dnAnIvT+GqV9L ys4BsvZg/NSGTsCgDd4YDC7IjRHR7x27iSxI0QNM307hB7tuFanGbajOTYYFcC4qXxlZ1CgicJM4V 9anrzcv0P420vZXnO9Rw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMeHU-0003p7-2A; Mon, 21 Oct 2019 20:27:56 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMeHR-0003ol-7e for linux-mtd@lists.infradead.org; Mon, 21 Oct 2019 20:27:54 +0000 Received: from gmail.com (unknown [104.132.1.77]) (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 0E6492067B; Mon, 21 Oct 2019 20:27:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571689672; bh=8L0ewzw/7ASjBk080cDN5cpuIRKTa15ov4LqNhbGUyU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XdtMEsZXZVkZi/8oM2C2wP4SMkBrcUEBcH7YoA38fZCsMykEa+h8l6fvBqs+UW7cf ATArblZlo/LZmMFIIeYmZTHsTcOSt1bCMO2wSrHqvrav3dPU/ruwbYJqEU1XJk3uXN wrdd0tiCZ11qo3ZLkz6RpfjgaTxP1Yfhb01SWRaE= Date: Mon, 21 Oct 2019 13:27:50 -0700 From: Eric Biggers To: linux-fscrypt@vger.kernel.org Subject: Re: [PATCH] fscrypt: invoke crypto API for ESSIV handling Message-ID: <20191021202749.GA122863@gmail.com> Mail-Followup-To: linux-fscrypt@vger.kernel.org, "Theodore Y . Ts'o" , Jaegeuk Kim , linux-crypto@vger.kernel.org, linux-mtd@lists.infradead.org, Ard Biesheuvel References: <20191009233840.224128-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191009233840.224128-1-ebiggers@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191021_132753_296663_30339DF0 X-CRM114-Status: GOOD ( 10.05 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jaegeuk Kim , "Theodore Y . Ts'o" , linux-crypto@vger.kernel.org, linux-mtd@lists.infradead.org, Ard Biesheuvel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org On Wed, Oct 09, 2019 at 04:38:40PM -0700, Eric Biggers wrote: > From: Eric Biggers > > Instead of open-coding the calculations for ESSIV handling, use an ESSIV > skcipher which does all of this under the hood. ESSIV was added to the > crypto API in v5.4. > > This is based on a patch from Ard Biesheuvel, but reworked to apply > after all the fscrypt changes that went into v5.4. > > Tested with 'kvm-xfstests -c ext4,f2fs -g encrypt', including the > ciphertext verification tests for v1 and v2 encryption policies. > > Originally-from: Ard Biesheuvel > Signed-off-by: Eric Biggers > --- Applied to fscrypt.git for 5.5. - Eric ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/