Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2302698ybi; Mon, 17 Jun 2019 02:26:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKqDbgREAS/uyUnSVZEll0JoFBPHY14XHM5NwffLlzhaeuvyR/VbM1k834zIdOlKyFwArA X-Received: by 2002:a17:902:b58f:: with SMTP id a15mr106194558pls.201.1560763583766; Mon, 17 Jun 2019 02:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560763583; cv=none; d=google.com; s=arc-20160816; b=rx/DTJLQlkBIg+vVh8TzeU3yKz9nc3yD5Axp/3qTBs3REVJwPtEwiyGW57qDNorgTy EaapAkHl08IfWspUvH/JXtITAWiBJocrTHPLodDxNxkBuNs0vxt5hr+nNkli6H6TIrz9 Z+gIe7aNLaI+FUSRsC5ophXdTlt/B+bzMxTqTiUq+RTNBXI6PUVvlUvAiUua8XuoD4kP giLqujdtSKHhrRP382YQeCueJV02168D+5ZOZKIxeIHnaULyPErr4aC7RcIOwa2QqW+y YaZnRTsDWcexWgTsiQVwyc62w65KiA0LdJJt6lv043OSEuxBR+kghneg7zDFxUMZTwod 18Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zIqikUxxUkznt/nPhZHSPquXqmCjr0iAh/jFh9d8P3A=; b=Yp1JaZ1Wx5HRsJxFMeIPj9Febjduiv4jq+eoCeFqGmKQ+fOM+5BNszcymwNJEn3iMW L4yE2P6Cxj5JGFIUmAh8n5hOyXChDM1uF05ZKYAwVcyaD50x+W0+v55Sv9NQwIxboNgJ g+HPNBg28K3/g6sJKsT+YRoFvZui9d8WlY5s5ujQlKHg1Fo6cN5YQ9jD5G0/Z6grd/na MviriAQJB/Jk/M+mD8xjQiTIZoWmE5ERn8a/Ke5fLloY5Q/spYHsEJGWcYeIQSJO4QcY pmVDj4MYgN39anLEyM0yHfmPfctiHfJqlGr4aMB8D45C/0A1slxY0LYSJPVMDj8qR/KA k8IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fLsvWmEG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14si10634883pgh.437.2019.06.17.02.26.09; Mon, 17 Jun 2019 02:26: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; dkim=pass header.i=@linaro.org header.s=google header.b=fLsvWmEG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727022AbfFQJYp (ORCPT + 99 others); Mon, 17 Jun 2019 05:24:45 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:38757 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728105AbfFQJYn (ORCPT ); Mon, 17 Jun 2019 05:24:43 -0400 Received: by mail-io1-f67.google.com with SMTP id d12so11667182iod.5 for ; Mon, 17 Jun 2019 02:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zIqikUxxUkznt/nPhZHSPquXqmCjr0iAh/jFh9d8P3A=; b=fLsvWmEGUkcftWJR9NozAsTm7Mo72HiPUuzSfhlKYGihIuydPz99+gbl4pOBPFGByl 5CIEpGGJJQNDSYPn0PzRtpPQdNDaJidhuYmvMJ/qGYxqEfY75Ezgbf7dY+eDXGIi/ZT4 j1+zcJYVZnCg87OeiZ34VLfHtpO9w63q8EK1sfhoSH9VoZD7yjbChUCDRgZsvl0hhxVX 8mVAzAd/n8cw3ugcUssXJybA9+gInlaL9G+E1+j7TXyz0lAyz/+7aiTCD/vvXBZw9zl1 bw8N6Y2lGCJ2qPBrnrH3K52Sdi6Jl3gZsF5b80N2DmKrM8/CWHDEk6w4hYqV2GgZPAOG KzGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zIqikUxxUkznt/nPhZHSPquXqmCjr0iAh/jFh9d8P3A=; b=maS42f0f5lja9Z+eyDBDgvQ+h6Tc8EKq897p5GN74a6YgV7l3hWUy3UuRxsJBs9qHM MQlodnYrVurYsuYU3ieyWphfBm67wLdZgeZY2GB4X37h96rXYD9Mt329eN0NQWmJU/fk 1JigrxkQVTPHE7dXr2Les+U/fKLiS3xIEV+qETvmmdxcAxLhanrojzhw3DynlPOI+CO4 yQ0f762tNd25zoSqwz8hUViAGnA/ef32V/XtdviXf4Sh4aI/e6wMrKdjELMYNiNHYVrv UGeKXj2wjl8AbtzYKcRkTASkgZD9YgEj9YbnLUL3rXVOIFBzSpLg/l3YMINJ8PxHMIir mTKw== X-Gm-Message-State: APjAAAXXKyZhwTCXAmWaFOo2Lco92SpuOfhluFn7l4wXKyBa0VKFiCAH weYO+qtNOo7xTzoA1sY8Mzlu1OlW+Szcani9NTW0Dw== X-Received: by 2002:a5d:9456:: with SMTP id x22mr868694ior.71.1560763482317; Mon, 17 Jun 2019 02:24:42 -0700 (PDT) MIME-Version: 1.0 References: <20190614083404.20514-1-ard.biesheuvel@linaro.org> <20190616204419.GE923@sol.localdomain> <20190617092012.gk7wrazxh7bwfmjk@gondor.apana.org.au> In-Reply-To: <20190617092012.gk7wrazxh7bwfmjk@gondor.apana.org.au> From: Ard Biesheuvel Date: Mon, 17 Jun 2019 11:24:31 +0200 Message-ID: Subject: Re: [RFC PATCH 0/3] crypto: switch to shash for ESSIV generation To: Herbert Xu Cc: Gilad Ben-Yossef , Eric Biggers , Linux Crypto Mailing List , device-mapper development , linux-fscrypt@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, 17 Jun 2019 at 11:20, Herbert Xu wrote: > > On Mon, Jun 17, 2019 at 11:15:01AM +0200, Ard Biesheuvel wrote: > > > > Ah yes, thanks for reminding me. There was some debate in the past > > about this, but I don't remember the details. > > I think there were some controversy regarding whether the resulting > code lived in drivers/md or crypto. I think as long as drivers/md > is the only user of the said code then having it in drivers/md should > be fine. > > However, if we end up using/reusing the same code for others such as > fs/crypto then it might make more sense to have them in crypto. > Agreed. We could more easily test it in isolation and ensure parity between different implementations, especially now that we have Eric's improved testing framework that tests against generic implementations.