Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp835002imm; Thu, 13 Sep 2018 08:26:31 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdblepkyi9VL00e2LB89w8/AzGKb+qagREWkd3eCSkneaNgn/IOBjbbtxJAyIPi8eQUcvern X-Received: by 2002:a63:26c6:: with SMTP id m189-v6mr7642745pgm.70.1536852391792; Thu, 13 Sep 2018 08:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536852391; cv=none; d=google.com; s=arc-20160816; b=wTxZmF1OsYFs3zexiZNthuxRgVUPEwi+im/08b1CEVtimLuCgZ5SuzDf03+mQsOY9i Fz76ixrQvqwtkN+JY+2fM7nrI8MbAfpjmpaX6jvQvsR06xDq/C80M1NHdVslTq04X5c/ bU+2HkT5im+gU7pvgwCMpLPWOd476FAPg6xTuUyz+vovcMyBhSz1k4vULg/R3fL5gmma 7fe7ZNjUm4sL0HJSkWvJeqskmsx9TB0E4DWU2mwN9Lq6npjQSZ8C4098GBPULvMfSZks E3GDAewh8NeZQeeyXSkK0Ffr+ywP5LE8RwR7oILVv3GJXWG5EBSdanqubf/8A8e4zQXA yJVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=NTHnFBwg14lRtBKW3sBGqk4EHmFI9Zb5iy+jPaMk59U=; b=A+WsrJ5lzGS9A+U1W/IZjVKR3Y+V81YMTWJqA/UzceBJhjCEAYgWB5bygJue6RV7bX X4KqTpARqrW4vvzk9jdIFJ8NSvVF7pFpGBs5ouR9eTLFTn9a6nu4Rjm+mjFbgw5MOXLh q/cjkW9uj5x0HY010qcUuZogGDojHK1urGRXhbnIcs6fsTp/CzpRZo7MGlRo8oAzMS5r 1l0bDyOreD5wkExGRs1GQvSsjqP1n7laQNfiLHwcdpiJC2FC3LSmIm9VjEIOYAiAil5T KhC3hYkSLfW85iF35XEpzEcIDVFcSGksOY4KhlU3CdfconIL0L3IqCtutkcUrZdMRq2r ka9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=q9r9hBKL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 z89-v6si4088604pfd.357.2018.09.13.08.26.14; Thu, 13 Sep 2018 08:26:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=q9r9hBKL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727795AbeIMUgH (ORCPT + 99 others); Thu, 13 Sep 2018 16:36:07 -0400 Received: from mail-pl1-f174.google.com ([209.85.214.174]:37628 "EHLO mail-pl1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbeIMUgH (ORCPT ); Thu, 13 Sep 2018 16:36:07 -0400 Received: by mail-pl1-f174.google.com with SMTP id f1-v6so2758004plt.4 for ; Thu, 13 Sep 2018 08:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NTHnFBwg14lRtBKW3sBGqk4EHmFI9Zb5iy+jPaMk59U=; b=q9r9hBKLGzkbUnOT5hQ1CDrBHePFe0e/m0ENnteS98MziAUAf+W26DIRPUqsNsYpPq pfPQ8WbD33vKUjyFNcdI86eIVttPHBSWyRTHzCPvROvCEKdPZxByBQYo5EduyjxCHLqm nGNpF1nN4NFg/E8Fqyxl8jZ/eT1WMpVlBVbUtkMxkkkT/K+2qehyisR2+Fo1rEG5hZ3g OB6wkliDslwsWxx2W3JvluVeyn8ZnAMHlWfwObf6fSCk0a6NV8snN5KnqtQwDJOxdPvZ 5XRud0wHk1R6Vff2GkDC+cT9rQYIizRKLBmJEl3i/hmN2bJaMAx6E9CMJQlMZrQ91gce 3m4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NTHnFBwg14lRtBKW3sBGqk4EHmFI9Zb5iy+jPaMk59U=; b=W7VsjJ1OxZdhIpCc5/Wn6JNSDdg71j04RZkGyF0YVh7hbth2fHV4cv9CU+ICzX7MLJ 9zjK5Wjcx4o27E5wTgtqBaFZyd30OuwvA+HJmT/mTa2i5AVz2tF5iyLam9/+E+Ze5fKE pgJYjLET7nwDZtS7lnUjmPpoMdW3Tey9+IR+mcBBEueC7bAt0Lr3MXenAhmKG71FYzCY /Q/yOzIHYfq2UVSIFUeFVRwez4NDjpQ4fnkACbGyn3CeI8+9uOYOdd6hbQ1cmr0K/XNV GRgyDajRjOljSLp0gk2X/ozri2C0cOyn3JlBmOviQzDKzifSaXxJKTYVAAmz3CEIcsRh KnCw== X-Gm-Message-State: APzg51DDLdD4LRNJvjQCiIAkAYC+X1y9vrxmfsdEF/v2BHfrd911fc16 HkUSNP+LGgKPJEHVgpVMJCjmZw== X-Received: by 2002:a17:902:6909:: with SMTP id j9-v6mr7759805plk.196.1536852367513; Thu, 13 Sep 2018 08:26:07 -0700 (PDT) Received: from ?IPv6:2600:1010:b01e:351f:3993:453:ee20:ea06? ([2600:1010:b01e:351f:3993:453:ee20:ea06]) by smtp.gmail.com with ESMTPSA id 185-v6sm7206145pge.82.2018.09.13.08.26.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 08:26:06 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH net-next v3 02/17] zinc: introduce minimal cryptography library From: Andy Lutomirski X-Mailer: iPhone Mail (15G77) In-Reply-To: Date: Thu, 13 Sep 2018 08:26:05 -0700 Cc: Andy Lutomirski , Ard Biesheuvel , "Jason A. Donenfeld" , LKML , Netdev , David Miller , Greg Kroah-Hartman , Samuel Neves , Jean-Philippe Aumasson , Linux Crypto Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <20180911010838.8818-1-Jason@zx2c4.com> <20180911010838.8818-3-Jason@zx2c4.com> To: Milan Broz Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 12, 2018, at 11:39 PM, Milan Broz wrote: >=20 >> On 13/09/18 01:45, Andy Lutomirski wrote: >> On Wed, Sep 12, 2018 at 3:56 PM, Ard Biesheuvel > ...=20 >> b) Crypto that is used dynamically. This includes dm-crypt >> (aes-xts-plain64, aes-cbc-essiv, etc), all the ALG_IF interfaces, a >> lot of IPSEC stuff, possibly KCM, and probably many more. These will >> get comparatively little benefit from being converted to a zinc-like >> interface. For some of these cases, it wouldn't make any sense at all >> to convert them. Certainly the ones that do async hardware crypto >> using DMA engines will never look at all like zinc, even under the >> hood. >=20 > Please note, that dm-crypt now uses not only block ciphers and modes, > but also authenticated encryption and hashes (for ESSIV and HMAC > in authenticated composed modes) and RNG (for random IV). > We use crypto API, including async variants (I hope correctly :) Right. And all this is why I don=E2=80=99t think dm-crypt should use zinc, a= t least not any time soon.