Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1949035ybi; Thu, 20 Jun 2019 06:41:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMhmboZvoKGKuRll4/Hfdy28O+ZNPXCp/60j3H4n1O8wT4ymY9rLfJYl34j7N1ndnxVL+b X-Received: by 2002:aa7:80d2:: with SMTP id a18mr7290426pfn.152.1561038068661; Thu, 20 Jun 2019 06:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561038068; cv=none; d=google.com; s=arc-20160816; b=DrR4gglN9nd4dFOSOwDKY3MOU0lREUzYPjUrNwChFah9B02zj26EAhKoiSClYEiSGN jGWk3tJGgsP22+TSc+yoJwgr1PLfiMYJrZ8WHt4iMXsUmxkoA+aLK3BHkSd4OxmbXtzz 3B801Wt0b4yx8g+/erJ6E9WdfNdgsWS7Pj1msY38RTIHlSfRL/VL6/c+N+mN7HI+RVCb Mi661oWUSwUsLhCqmn3QxJxkD0UGxJJ7wXnWX0B4R536gUK174KYaBvDieKjhKu6eY68 yHrZyEWmfeyYRHV6o5XhDFA2/Rhi0bz6KtupSyscrg/E8L3p0iR68QKwnkVeHtWEb6di Xfqw== 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=KOG1+ipMfxxkvtW/jZ8UlJ9Um4UkIa5z08ig0Ufqcic=; b=EyoK9/TP+faI3cQiVwxymwahevGEp/V19afKqqna6nF2naoOgBU74F4mDdhbNVzFO3 F4VrtquouT4xsg72a72qYeqnUj7yLUw9tSBZBLj/ZWVVY821+tz0wUUISAO/pFbMT8MK DRiZ0Re2krVToTi2/IiZpG2XmEM76WfXrTT9hBv1YZ0RUhLrT42o5QGdUGVZsXmrC85c 9itQXjhdC7gMXvROU5VRseqfDhcFq/O8Ezg1FTwg+igZZyu4bgRc1jE9/ok6wcK5/onP zMRONUcXebpbe3HCk219181Mv6LcBUjLr3KED0NraWQZ6RSdKmCCjJAdOhjBl6FD1vwV h5jg== 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 f7si5645219pgd.155.2019.06.20.06.40.54; Thu, 20 Jun 2019 06:41:08 -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 S1726551AbfFTNkv (ORCPT + 99 others); Thu, 20 Jun 2019 09:40:51 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:46286 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726391AbfFTNku (ORCPT ); Thu, 20 Jun 2019 09:40:50 -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 1hdxJ1-000366-G4; Thu, 20 Jun 2019 21:40:47 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hdxIz-0006ry-GR; Thu, 20 Jun 2019 21:40:45 +0800 Date: Thu, 20 Jun 2019 21:40:45 +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: <20190620134045.fncibzc7eyufd5sj@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> 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:02:04PM +0200, Ard Biesheuvel wrote: > > It also depend on how realistic it is that we will need to support > arbitrary sector sizes in the future. I mean, if we decide today that > essiv() uses an implicit sector size of 4k, we can always add > essiv64k() later, rather than adding lots of complexity now that we > are never going to use. Note that ESSIV is already more or less > deprecated, so there is really no point in inventing these weird and > wonderful things if we want people to move to XTS and plain IV > generation instead. Well whatever we do for ESSIV should also extend to other IV generators in dm-crypt so that potentially we can have a single interface for dm-crypt multi-sector processing in future (IOW you don't have special code for ESSIV vs. other algos). That is why we should get the ESSIV interface right as it could serve as an example for future implementations. What do the dm-crypt people think? Are you ever going to need processing in units other than 4K? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt