Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp73577ybi; Thu, 20 Jun 2019 18:07:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqymdgUMyFGJswWO98fsZiRp93rb/Et4dRuIVOruF6SFxwBt921S1tiDHoi9LY+3NjsFUc3l X-Received: by 2002:a63:757:: with SMTP id 84mr4100733pgh.288.1561079243376; Thu, 20 Jun 2019 18:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561079243; cv=none; d=google.com; s=arc-20160816; b=GenHG7bLV9Bw3lzRQ8odlUUxSS1yXyZmAMZlY+9d2UhBRXXTDLWItupS0pTSO368L8 PdVI34JfwTs/kM7bgpdBsDrNLMd4hHwOo3tWb18jzN/Di9cwRmEGjBj4EjF96uCqnH+9 4qtpf/QncePcsy6Q0zzHvobL4CSSyjh5qSufY4cSQROz/Iw233zLC01qp8doTln8LFhJ i/crXZvwDCEVodz1XAy+HmriDxZ3qsX64x3aToJ1sPFczD6auM8RrprA4LtlFM0tZDFx CrTsa9ZwJWH6sUfs7GGdteIyHchPHM9im/6dIHh9LGws9PjyWBaAkt5jRbtgPEEnNWsP ereA== 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=4Eg/eiETjJVQf9G/jcI3CUpIR3rzR5CRghIfgLx9UBs=; b=RP8w4s6J487xyf2zw7YJyNfF8Mp9WMDCPfRtsE+5NUm9A2tcNeAtCDX2/aXUWbAQFq yucSJquP/CYgJJFSHa8BMHbwuipX5Wl3jiqucGMUxOKb5MTpV3EYrp8JKJHXy8Z2liP/ v8QAUqZEtn51s3uVY7kczzjzUlib16wx3VIDR6jOVJ1n3/tD2qBttqX04kLFq7qCwqbQ 9Zm+SY+Dlb+g2+Kpb6kfFfsxLfN2uWBg8+ikvpmZrYUOPpsWz0n6LaQjexz9DPYwrHLk WM4zld0bXfVEMPVFcIJksgMqmh9mwFfDny8C4coWO7p4etnD0Qb2dMBL66zIoyn0xpmx Pnmg== 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 2si980497pgy.541.2019.06.20.18.07.07; Thu, 20 Jun 2019 18:07:23 -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 S1725936AbfFUBHF (ORCPT + 99 others); Thu, 20 Jun 2019 21:07:05 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:52524 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbfFUBHF (ORCPT ); Thu, 20 Jun 2019 21:07:05 -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 1he816-00011U-39; Fri, 21 Jun 2019 09:07:00 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1he813-0007at-R3; Fri, 21 Jun 2019 09:06:57 +0800 Date: Fri, 21 Jun 2019 09:06:57 +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: <20190621010657.foscl7aaxlx7tfuy@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> <20190620125339.gqup5623sw4xrsmi@gondor.apana.org.au> <20190620134045.fncibzc7eyufd5sj@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 03:53:45PM +0200, Ard Biesheuvel wrote: > > We'd need at least 512 and 4k for dm-crypt, but I don't think the > sector size is limited at all tbh In that case my preference would be to encode this into the key and hardware that encounters unsupported sector sizes can use a fallback. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt