Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1899020ybi; Thu, 20 Jun 2019 05:54:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMcGS2NDI8+tS+vh2rUYSvAI+EFFKCwt1juykpaslCGl/Jc4/XImLhKIf2A/aZw5c7COi+ X-Received: by 2002:a63:cd52:: with SMTP id a18mr9863500pgj.351.1561035241506; Thu, 20 Jun 2019 05:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561035241; cv=none; d=google.com; s=arc-20160816; b=V82+mqZd2hOvA/C5DiSajjAPMv1CvxgjcsKd3jIRDmeezNwVhOvK3qhXQIzvrjwFGi rOnH20KV2hiGoArYB7AhkJL2KuthrZow+uMpZ0IpnI0clzbtIjA3Ips7MVc6SzAWIIj+ TJXoJI3+7BwyIqLXF+GgHtGcO/espZr7deY28YDqrdHvepiG40k2siePVYNvKLwX4/SF 6WQQy1kLB5/ST60iOi3NgxI2kmAR8wtA0YZR4NoxvmGNPvSuE/ElNd25HZ18iyBAePZr mhTGBC6/e3sV/b+T+us/YW+Gs01x5xQTv1YwfBuhi2w48TWRrUkIoUzAJODH1t/p5g0t nuXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=40qd0BhcBY73RtHRFa7IVO1IpgMpfa7wo7nGbR9a9zk=; b=QRXvtt9U5qFK68ndeAFHgjOfztmF2P5pesHwZYu5rm+rPGNhD+Nq27fYQp2YDZsqxU qeK2PttM85G/zozklDj2nY2tA8L2uvPIyArjSwoahaoPhY6rsfnxMgj0HkWRVjJUjDcK ofiXsHq8hNG0MIITYTmpfrDuBLdLdtFvtnx0yxkQqUXfl1kGKABH/tpZcuXiEoGYT4Vt qS8jtMNFvvEzoPGwFQz67/LE0Rj5e4a8oioICvj1k5AKMfCMsOZ6K1vog2UTRlCDfQW6 m0egMGwCmkrhWbDN3mviDzk6EmrkJxF4bco8FqTslDi1GQCTO0YIpIAQY5WkYfSqFrQS mVGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g32si4270067pje.38.2019.06.20.05.53.47; Thu, 20 Jun 2019 05:54:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726931AbfFTMxo (ORCPT + 99 others); Thu, 20 Jun 2019 08:53:44 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:45792 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726569AbfFTMxo (ORCPT ); Thu, 20 Jun 2019 08:53:44 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1hdwZQ-00028j-IM; Thu, 20 Jun 2019 20:53:40 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hdwZP-0004iN-Dz; Thu, 20 Jun 2019 20:53:39 +0800 Date: Thu, 20 Jun 2019 20:53:39 +0800 From: Herbert Xu To: Ard Biesheuvel Cc: Eric Biggers , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , device-mapper development , linux-fscrypt@vger.kernel.org, Gilad Ben-Yossef , Milan Broz Subject: Re: [PATCH v3 1/6] crypto: essiv - create wrapper template for ESSIV generation Message-ID: <20190620125339.gqup5623sw4xrsmi@gondor.apana.org.au> References: <20190619162921.12509-1-ard.biesheuvel@linaro.org> <20190619162921.12509-2-ard.biesheuvel@linaro.org> <20190620010417.GA722@sol.localdomain> <20190620011325.phmxmeqnv2o3wqtr@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Jun 20, 2019 at 09:30:41AM +0200, Ard Biesheuvel wrote: > > Is this the right approach? Or are there better ways to convey this > information when instantiating the template? > Also, it seems to me that the dm-crypt and fscrypt layers would > require major surgery in order to take advantage of this. Oh and you don't have to make dm-crypt use it from the start. That is, you can just make things simple by doing it one sector at a time in the dm-crypt code even though the underlying essiv code supports multiple sectors. Someone who cares about this is sure to come along and fix it later. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt