Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3895965ybl; Tue, 20 Aug 2019 04:04:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwT4yO4CoQqpxovbSqZGuGwFYTWqDPl7N2za3rirRzcpUFH95O6Up14y2pYhlIMAeEd92H X-Received: by 2002:a17:902:988d:: with SMTP id s13mr19052341plp.139.1566299046159; Tue, 20 Aug 2019 04:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566299046; cv=none; d=google.com; s=arc-20160816; b=jsXl3KyqpKu3TuDZ8hE3DRqhdHEeGKeq08/pPsrehPO0ywdUOOR2MzrPdHEMC9fHie KRTDktiZvi+GlHGhO7biiq69VNa90V58QqiFnM5EvLEH7j8TPn7udjZDRXBr6kyU0WQJ A9EN74qi0bbKFpFEKumZkxGkH3bB1fQtb6zadQEvjLGpr93PDEzRe5X5veJ0siu8IhQx uUL6xEizvfCU0m3XwCBPrLQMYcnPuUBjy/95tP0aij76G9SeRZTpAABHxl+q5nv6XB1W aY7W1O3BKFuYWssM8G5kpkr+tk20gd7yWGWS3mxRY86tfPp0/Eih2Rub+dF3VNWefXPe KZzA== 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=PYetcWjVc7vdSwtXssMSvg418r+8X4MgNhcaW/l2Leo=; b=Xhj/sHCBq1YcJoe/MqX9WrWYCksfku8t+7Qppu9Qp1QKVL2b2C0zyBZ/DgfMpmonEs Nbk1fWIoZOUl4xmdyeuCoy14i4VvjYAx0rYrMj3VWz+9fQAVNn8Yl6/6wzBlcIgnDhiU wXKn3lEWMaJ2JZCpaivHgA1PmTAsorDoTSBiylq07iPfRdxJoF3ryBLgQrzc6QVP35Fu 5JVorenzKsvQ3QEkilM8u5OH9zcuYHG4OZUnsE6jVL8DLSSigI+5fDdBONj5Vt//HLmi PWolu24ZnBC71iwb5O6BrlTwBG1SbrI4wcr3GKhe7vNRHPqLn2Z2JZBavAxTkLzSnQ5e BPwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DOrFw9r0; 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 o1si10749562pjt.51.2019.08.20.04.03.51; Tue, 20 Aug 2019 04:04:06 -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=DOrFw9r0; 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 S1729383AbfHTLDQ (ORCPT + 99 others); Tue, 20 Aug 2019 07:03:16 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44798 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728409AbfHTLDQ (ORCPT ); Tue, 20 Aug 2019 07:03:16 -0400 Received: by mail-wr1-f65.google.com with SMTP id p17so11907106wrf.11 for ; Tue, 20 Aug 2019 04:03:14 -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=PYetcWjVc7vdSwtXssMSvg418r+8X4MgNhcaW/l2Leo=; b=DOrFw9r0hM88VSDUNv4XPUF8FQuOn1Tbru5+f8U0usSQcwdLnstfltZSH0d8/CLFmW zsjrLaCUTr36kZ3ZqK7iCs5NCovMAMExkBSaVCCcnDZ3QhRD5ppm5x3py7r20aRfPYLQ zD8RCtM0hDkqSHJwbEFRadyQ4WaTLz80AjVBwFExy++q8x8CjfMjOsQ+aPd/at7qoUWL kfBIYyKoI+ZPDQySwrjXDAyNvt92RQqpin7+1JSxin+dPz0+H+aKxjit0PbmA5L05deo 0XNn66WVCUU3GuTb203wcmJD2NwPmIZ/KCc5MVZZq/nOpQGwZ9m8GsFJtvEGpGD6/tth E7Ug== 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=PYetcWjVc7vdSwtXssMSvg418r+8X4MgNhcaW/l2Leo=; b=FjULheTx/aTICQGtMgDePHhKDr+vlov8lYrNe9wmRboPWmIRug8MrpNnQGpU4r6Wz5 lzQCC7oefkfwiQkHFfNQydRDue8AjRBaAm7j5JR6HIOW/2LpRV2btM8Di9Ob8qxPZh// XrVH/RXBwIZ7Zxa6bflyORhVcSEk50QF+6I09xlhzasPUhKrgOhRP5Qc+j0bCJUaL3FQ 6h1EsJRGWBw+e2tc/ExuoZyMTE86w/NeBedJAfy4bdYFdvTN+GvI1/4pIRR/Imxx84UP XbI9/BcfH/wTjySCuVO2d+IvHYfuT8IhtVsKLAoH7uSszHzmjeu91jngBRF+ehSyxUb8 jTrg== X-Gm-Message-State: APjAAAViKo+f9bQTmc6GoE3q612cZA1nWw9w9YMM58gQpCzjjCpMUFWS +8ZOIv0z7KjZ9zzZVDmAmy3MXt519Wl7+i+QSAv52ZswWgwTxQ== X-Received: by 2002:a05:6000:128d:: with SMTP id f13mr959362wrx.241.1566298993670; Tue, 20 Aug 2019 04:03:13 -0700 (PDT) MIME-Version: 1.0 References: <20190819141738.1231-1-ard.biesheuvel@linaro.org> In-Reply-To: <20190819141738.1231-1-ard.biesheuvel@linaro.org> From: Ard Biesheuvel Date: Tue, 20 Aug 2019 14:03:02 +0300 Message-ID: Subject: Re: [PATCH v13 0/6] crypto: switch to crypto API for ESSIV generation To: "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" Cc: Herbert Xu , Eric Biggers , device-mapper development , linux-fscrypt@vger.kernel.org, Gilad Ben-Yossef , Milan Broz 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, 19 Aug 2019 at 17:17, Ard Biesheuvel wrote: > > This series creates an ESSIV template that produces a skcipher or AEAD > transform based on a tuple of the form ',' (or ',' > for the AEAD case). It exposes the encapsulated sync or async skcipher/aead by > passing through all operations, while using the cipher/shash pair to transform > the input IV into an ESSIV output IV. > > Changes since v12: > - don't use a per-instance shash but only record the cra_driver_name of the > shash when instantiating the template, and allocate the shash for each > allocated transform instead > - add back the dm-crypt patch -> as Milan has indicated, his preference would > be to queue these changes for v5.4 (with the first patch shared between the > cryptodev and md trees on a stable branch based on v5.3-rc1 - if needed, > I can provide a signed tag) > Actually, since Eric has indicated that he does not want to take the associated fscrypt change for v5.4 anyway, patch #1 could simply be routed through the md tree instead, while the others are taken through cryptodev.