Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4114982imm; Tue, 25 Sep 2018 11:34:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV60+lvOFOGwBkP/x8CPGalKhuhUZ3v6nvHWwKDxYTsHIct6Pm0v5M8sinr35TgyM2PGyUY/l X-Received: by 2002:a63:f344:: with SMTP id t4-v6mr2218784pgj.428.1537900484959; Tue, 25 Sep 2018 11:34:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537900484; cv=none; d=google.com; s=arc-20160816; b=TjUsmz6uS508HNgWUIsMZhIoPCsyE/mEqmX0Z86mc/gXUGAObekPdGOv+WV4xs04mY /xN50je+QpV/d3r7mPJE9Y3QkxLItKYnLSfHcUrYle6APRWdFj4MZvqemaUtZroVodbr kHMT4ulXybknV0BWpFJQf6UL2ok3LyxWrslRd/ctu6Lv/w7GG0FoCxJV7n/aUNHpXdjg V1AYLE4iBr8pir21wsZoRAjoeiR6Xk0kcxyl2E3xso7XyrVAA1++s0I9OzykI52oI8ht l2EFp5p10rvmh4dlv0+TgQcvKQkq9iXR6NLo+SzIyTHuhHmKKtKEOsWqmQzwz9TjWZzU /ykw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=8W/L62HnQJfFkxML50SIbrtX92mTZed8cmHAtrgWHk8=; b=c9GDhecYbcD1QYkm2fa2zZ1eVxbZkhDwPZGscXbAaRsKkw6dvv/vbzcM8GGPdpNnZR Y+XTLX6sm6tUVQjAi2a/EDykh+XlMCH9chQaR7f1NwBACOXeihYuO84hiEyHyLQBptXr DIKtW9eroLBmnUYvUCqogrkMYr64KSDibyADazQ2BIaEnwlT0/qmCSJeXym/u4Fpf89H EO6GwI1/DoKwTkeKUNnNVuOzmXhi40WglM1nY5C1CaReh62JSoqwjX++wF6bO/x4FNAG NGeoL4kcVi3ds0sbXJnrV4JsfjKZtQGBriJus5H3UH25v8Llr/mBdTU12bX27law0EZm vx6Q== ARC-Authentication-Results: i=1; mx.google.com; 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 62-v6si2572378ple.450.2018.09.25.11.34.28; Tue, 25 Sep 2018 11:34:44 -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; 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 S1727483AbeIZAml (ORCPT + 99 others); Tue, 25 Sep 2018 20:42:41 -0400 Received: from smtprelay0086.hostedemail.com ([216.40.44.86]:56177 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726335AbeIZAml (ORCPT ); Tue, 25 Sep 2018 20:42:41 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 359CC100E86C2; Tue, 25 Sep 2018 18:33:52 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:4321:5007:8784:10004:10400:10848:10903:11026:11232:11473:11658:11914:12048:12555:12740:12760:12895:12986:13069:13311:13357:13439:14659:14721:21080:21611:21627:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:30,LUA_SUMMARY:none X-HE-Tag: money53_3ea61ce703163 X-Filterd-Recvd-Size: 1923 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Tue, 25 Sep 2018 18:33:50 +0000 (UTC) Message-ID: <2b5f2df2f1278c118a913259a44efdf589719293.camel@perches.com> Subject: Re: [PATCH net-next v6 02/23] zinc: introduce minimal cryptography library From: Joe Perches To: "Jason A. Donenfeld" , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-crypto@vger.kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org Cc: Samuel Neves , Andy Lutomirski , Jean-Philippe Aumasson Date: Tue, 25 Sep 2018 11:33:49 -0700 In-Reply-To: <20180925145622.29959-3-Jason@zx2c4.com> References: <20180925145622.29959-1-Jason@zx2c4.com> <20180925145622.29959-3-Jason@zx2c4.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-09-25 at 16:56 +0200, Jason A. Donenfeld wrote: > Zinc stands for "Zinc Is Neat Crypto" or "Zinc as IN Crypto" or maybe > just "Zx2c4's INsane Cryptolib." It's also short, easy to type, and > plays nicely with the recent trend of naming crypto libraries after > elements. The guiding principle is "don't overdo it". It's less of a > library and more of a directory tree for organizing well-curated direct > implementations of cryptography primitives. [] > diff --git a/lib/zinc/Makefile b/lib/zinc/Makefile > new file mode 100644 > index 000000000000..a61c80d676cb > --- /dev/null > +++ b/lib/zinc/Makefile > @@ -0,0 +1,3 @@ > +ccflags-y := -O2 > +ccflags-y += -D'pr_fmt(fmt)="zinc: " fmt' > +ccflags-$(CONFIG_ZINC_DEBUG) += -DDEBUG I think the -Dpr_fmt is especially odd and not really acceptable as it not used anywhere else in the kernel.