Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1897880ybi; Thu, 20 Jun 2019 05:52:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzY1eXtBdYaWUBQCGoAzU+Tdb/m5i6oALGVEXhsAdQuFgE9oUK/sVItk8BQ8efujHT/S6Zs X-Received: by 2002:a63:d218:: with SMTP id a24mr12969810pgg.419.1561035167196; Thu, 20 Jun 2019 05:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561035167; cv=none; d=google.com; s=arc-20160816; b=CU3vcnmR69RL93KS1S9rfiBcZ64h77tuQWYL7F4A2obKyE/FALl40t43AzxV2IR7NP DA/vx/EnUIIKBVB+uVESmm6ycwgGF9a5tkyqLXCdUrJ2IwN+hIgC9sYpb83KFl7T1mdE uHq8gnXcH6oRAuCOePBomvcd55xS+BMw6UMfv9gqMYz7K4i5j7CUs/Ihfz3S6za6FITu dvjFTvS2qxn/y+a0PRetkdpzGUjw3T1pRsfJm0JEdT5g3SnXP1y/02+uNpFQ3vKlK6BW y5vz+VxliEIhn4RhZ3O54SRFeQ6TN+yajAvydBZ0s+7UGbAPcTPXDiM5uTdAogU4NmAE oBnA== 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=jQtHUFaaKUrQ4tD7In0K8icVsaWc2qtjbMKTBG2i77g=; b=XxNRCR5J+aZwhz4FN9WcQ8GAJvsSAQ4Y2aimhFRbE6lyHOQ349jBwX63ZpeKZn1SvM DhFUV/bfvUV9tvkkk51QW1L9BEiWzrPM5qLgShdJzeoq6nyeur0z4leY1WTfIC+5WiA8 2ML9+cF9HWiljqy17rcK8zAjK9dtVIWQprGcZPBGgM4bzqcfxojDejK4k9LsxoSrlsN3 j8rWU1gUa7nBXTnAF++gkreMpQL2sGG4pIamXyMkInq/3u05wgaN7gXTkhcVcbjPtfMZ XeVVgcWU/iy1OlLlIC2UkwwUUobjzh/J7Lwc+HjE3nwUsaahWv/gDR3jXVEHQ4YjlsMF m4WQ== 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 x185si15984806pfx.243.2019.06.20.05.52.25; Thu, 20 Jun 2019 05:52:47 -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 S1726838AbfFTMwU (ORCPT + 99 others); Thu, 20 Jun 2019 08:52:20 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:45752 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726569AbfFTMwU (ORCPT ); Thu, 20 Jun 2019 08:52:20 -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 1hdwY4-00027k-BG; Thu, 20 Jun 2019 20:52:16 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hdwY2-0004hq-FG; Thu, 20 Jun 2019 20:52:14 +0800 Date: Thu, 20 Jun 2019 20:52:14 +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: <20190620125214.njibb7fauz3ezhz6@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. My preference would be to encode the sector size into the key. Hardware that can only support some sector sizes can use fallbacks as usual. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt