Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp888852imu; Tue, 20 Nov 2018 08:25:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/U3uIWQ74Xc/lt8HwsDB+1nn2Wkje4BF11cY6AgC5A6MkNvLa5QEzoauk2TB7on2uCg922M X-Received: by 2002:a65:6215:: with SMTP id d21mr2470144pgv.289.1542731157479; Tue, 20 Nov 2018 08:25:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542731157; cv=none; d=google.com; s=arc-20160816; b=hwWWpP6LD02T++/jY2USkWvSv9EX2cWozX4Pf17A1L824e82rOwgB4Ksu4og9E34Sl TLPVcLHgJDtHnwqjHo+hzw1Gbj2Z2HddfBvsza0mOahAOG3yngigk0Gpec5UaxlXMvRM fy5BxyHA8vXruo1KgmV7ltCyha24A635iR7RPPTAgKc9nNV23/BE5EdNp9ob1QZzhsPb 51exsX+1tJVhzfwoDXhl6tgfFAOMalazK8MOLYp7D+kY9YAI5YKdUX7Y1nangm6F38qP +FKt7VOyFHT31aacYjKypu9Vggd1b1VIug4K0Gvu6eZabqgK4S3umuSeMud80+2RRaYN idsA== 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=7d0grpQ4qccI57mXVhcfm2Nq7pTjNxFDOga7Z8VHP9Q=; b=gclUSmTyQS/FQZeyF+gm5KQfVAEyj84Z98aGrlgM6u57sVSz5Hj9r1EEsagLuXGgcl COB4q4wmibtJb5IsruumJ0s4p7d3kyFVfQ5zkO6jRgb+3SuUrXk9cHQs9H8qQYGKw9eC rvVyvQwNKeH2w+uOVC9CUo3jpijBZfSqq5pnEWvYUzGg5nyXNvNayLyKwbihAFXv5koB hBA9UgmyhAqVaIv+rhwh287JG2w7QIDeQy5rBEiWvmFJkNTRhnib4siZb8tv2DtnCqYo qTvu9/WQzT8lFw09rwE7rgDjMUR/yHOA3H1KBpXaLTKXaVPpy3c80ty0vqUplP+whknY To2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=NV3ZF9sk; 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; 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 p16si24343805pff.272.2018.11.20.08.25.42; Tue, 20 Nov 2018 08:25:57 -0800 (PST) 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=@zx2c4.com header.s=mail header.b=NV3ZF9sk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729263AbeKUCse (ORCPT + 99 others); Tue, 20 Nov 2018 21:48:34 -0500 Received: from frisell.zx2c4.com ([192.95.5.64]:45703 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbeKUCsd (ORCPT ); Tue, 20 Nov 2018 21:48:33 -0500 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 438d852e; Tue, 20 Nov 2018 16:12:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=euFlACP5z0hFCwbRb9B+FEUe/+s=; b=NV3ZF9 sk2oud19Wiwwh5Z3Sh+o9+N1jXFm9a+fcYU+m0zkEnYNHXZE+CdB7F83JwtybPxo d6Fl/qKH4q2e7R8EZNH8y3yu49TK6iF/KFwUI0tutGysVxbAdbYsZA5mUMLhhAWN lMiejz35FG9ECdp1Ka63i8vD+IUwtDaU8PMywuain3JMIhW2griQX32+l3RojLUM 3lNjeKvFU27tYCEVop/6dYGrvNZLMOmqyCbDdft0agzWaXzH38CFJLJpNHfOQC/k 9Zg6hN/DnAPJm41KGRjWXF1JYtkaC4zHTQ6I4p743oNQkLDwSbIG95HOwIxcUQTH pEpevcZUyCpM0vSA== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 0c96e3d5 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 20 Nov 2018 16:12:29 +0000 (UTC) Received: by mail-oi1-f180.google.com with SMTP id p82-v6so1936345oih.11; Tue, 20 Nov 2018 08:18:36 -0800 (PST) X-Gm-Message-State: AA+aEWZYmH3arnYUAzJiZXjDzkZxysw20FeRs6aszrwDDOlTZdOeRmio HTkl4ceZ96eZmtvtcRu3FbZ2GMcZorB2mKmy/mA= X-Received: by 2002:aca:3f87:: with SMTP id m129-v6mr1357137oia.228.1542730716096; Tue, 20 Nov 2018 08:18:36 -0800 (PST) MIME-Version: 1.0 References: <20181105232526.173947-1-ebiggers@kernel.org> <20181105232526.173947-11-ebiggers@kernel.org> <20181112185816.GA8663@gmail.com> <20181116060227.hwu4igi6bp26ddpi@gondor.apana.org.au> <20181117001718.GA175522@gmail.com> <20181119052451.qttzfgcm4hvbdc4u@gondor.apana.org.au> <20181120060217.t4nccaqpwnxkl4tx@gondor.apana.org.au> In-Reply-To: <20181120060217.t4nccaqpwnxkl4tx@gondor.apana.org.au> From: "Jason A. Donenfeld" Date: Tue, 20 Nov 2018 17:18:24 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v2 0/4] Exporting existing crypto API code through zinc To: Herbert Xu Cc: Eric Biggers , Ard Biesheuvel , Linux Crypto Mailing List , linux-fscrypt@vger.kernel.org, linux-arm-kernel@lists.infradead.org, LKML , Paul Crowley , Greg Kaiser , Samuel Neves , Tomer Ashur , Martin Willi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Herbert, On Tue, Nov 20, 2018 at 7:02 AM Herbert Xu wrote: > Here is an updated version demonstrating how we could access the > accelerated versions of chacha20. It also includes a final patch > to deposit the new zinc version of x86-64 chacha20 into > arch/x86/crypto where it can be used by both the crypto API as well > as zinc. N'ack. As I mentioned in the last email, this really isn't okay, and mostly defeats the purpose of Zinc in the first place, adding complexity in a discombobulated half-baked way. Your proposal seems to be the worst of all worlds. Having talked to lots of people about the design of Zinc at this point to very positive reception, I'm going to move forward with submitting v9, once I rebase with the required changes for Eric's latest merge. Jason