Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp869840ybp; Fri, 4 Oct 2019 06:18:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgILgTAsJBPDjzGa1xb/Yn0SM2vy5ZzRMMzTL6WGjIQDTQwk2MKN/7+UV9hbhdPqwM2Nf8 X-Received: by 2002:a05:6402:290:: with SMTP id l16mr15219798edv.178.1570195104307; Fri, 04 Oct 2019 06:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570195104; cv=none; d=google.com; s=arc-20160816; b=hC4It1AUr1+BWledaoRnuzL/VgVBndol/aUo+Z0xXvh1nmlueyQbElvW1wkZPB/jju /g2wx2BxYu6twy8/UXwzcppeiZGwce1orC6/kunsgSHtXsZsfrF6n3Vj/qK7j34lMeGv i6KRPb5xworAY/fNbyiKNJZrQ2ixxAdtD13eBPOGEbu2RxU+EfoIurCokBDC0+Lb+mrn DcfZbJixX0v9R5Pak5wJ5J3mDbt90qsf9epM5u5Bx0W7X5ejyhf7bA7HCCrgnRkO0Xyz EJhWmOKSNeUb4VxnK9Czn/GTn0jEn9lH4S+pF6wME2oCnHFJ/ry2mLKcyP5wUBOr8RQa w0qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=FZqFwPJEDeZHD7nLmbrzY5rGM+YOwoJ8lTmYjWiQdJQ=; b=gUwhxCjBWfESBITIXxSpV1FffGFDMplaAovq3QKfxlIHUYEwqJp5H1YmQiVqgB6yh5 MKWe98k6OLJVyPSjV1PDXjNXYhrAg5kxF7GpaDewSxGS5P+g1VuvpXws8ix4SgaZ9HTG 9H6YUV+NWrUYgKJu51gws7OnwluOVazh97OBxxG68ieEx8qgAUnURICyyGDmVW3cyuRQ IcSCCjD7DTx5MzIoaXmT4SNQodTSJEJhqSTJtI329+gDPcmAJY/QtBZsbOQ2z0IIXXzR 7Nk3vvCWFb+2mNLgGnmVuTFRfbK7oNfgZweQvEbAa5Lv3Me2HVG/zY1d5UbhzeaL7mIo XYGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=kLeufadS; 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=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f45si3505704eda.345.2019.10.04.06.17.51; Fri, 04 Oct 2019 06:18:24 -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=@zx2c4.com header.s=mail header.b=kLeufadS; 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=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388246AbfJDNQY (ORCPT + 99 others); Fri, 4 Oct 2019 09:16:24 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:56733 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388234AbfJDNQY (ORCPT ); Fri, 4 Oct 2019 09:16:24 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 2383115b; Fri, 4 Oct 2019 12:29:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=date:from:to :cc:subject:message-id:references:mime-version:content-type :in-reply-to; s=mail; bh=ZzuTVC/SsCvt7l1FZ6cDBDQzGk8=; b=kLeufad Sjn/8MzGTXdc7O4UHkSWhHE1wg5gs2wkWT8yoTjR1ClWl408Ry1B3B4cRbBCF2Il hmyPBckVDU2KIDPGZAoVRwRe/NJmvwXEaHhUNIHfdMsnRODXmhP9NUGrFnC9PJXo KTs6lIIlgf2ARSYvmWCCTaepIcIzwXI4FObKWfhATKHNt+wnaRU/HyAUwkRSoxi+ gnEAGIk1F5BRNmHtqvE0tVqGLBPOQIy/JRD4Xh5QIg572c8mWUi3E4aHX3uLJKfX Wm7PKWxfA8aZcNCNGbgXraXJRFLP+7VlfN1A49HVRIEuMgzxjtXfykiCM5/vXEBV 8oEH6RpRvpS/+fA== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id afcaba72 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 4 Oct 2019 12:29:28 +0000 (UTC) Date: Fri, 4 Oct 2019 15:16:15 +0200 From: "Jason A. Donenfeld" To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, Herbert Xu , David Miller , Greg KH , Linus Torvalds , Samuel Neves , Dan Carpenter , Arnd Bergmann , Eric Biggers , Andy Lutomirski , Will Deacon , Marc Zyngier , Catalin Marinas , Martin Willi , Peter Zijlstra , Josh Poimboeuf Subject: Re: [PATCH v2 00/20] crypto: crypto API library interfaces for WireGuard Message-ID: <20191004131615.GA112631@zx2c4.com> References: <20191002141713.31189-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191002141713.31189-1-ard.biesheuvel@linaro.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Ard, On Wed, Oct 02, 2019 at 04:16:53PM +0200, Ard Biesheuvel wrote: > This is a followup to RFC 'crypto: wireguard with crypto API library interface' > [0]. Since no objections were raised to my approach, I've proceeded to fix up > some minor issues, and incorporate [most of] the missing MIPS code. > > Changes since RFC/v1: > - dropped the WireGuard patch itself, and the followup patches - since the > purpose was to illustrate the extent of the required changes, there is no > reason to keep including them. > - import the MIPS 32r2 versions of ChaCha and Poly1305, but expose both the > crypto API and library interfaces so that not only WireGuard but also IPsec > and Adiantum can benefit immediately. (The latter required adding support for > the reduced round version of ChaCha to the MIPS asm code) > - fix up various minor kconfig/build issues found in randconfig testing > (thanks Arnd!) Thanks for working on this. By wiring up the accelerated primitives, you're essentially implementing Zinc, and I expect that by the end of this, we'll wind up with something pretty close to where I started, with the critical difference that the directory names are different. Despite my initial email about WireGuard moving to the crypto API, it sounds like in the end it is likely to stay with Zinc, just without that name. Jason