Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1545437imu; Wed, 16 Jan 2019 22:30:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Um2xrUwkqPhQPWquObp2XmCbawGTf2gE8IareuEWgAPyHayJZP/7brrOK88Se4SOyBOAb X-Received: by 2002:a17:902:4d46:: with SMTP id o6mr13241063plh.302.1547706627441; Wed, 16 Jan 2019 22:30:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547706627; cv=none; d=google.com; s=arc-20160816; b=JwnPfDKbwwaPBhHTHapSWNEgDUdml8XRqgIaRCn/hqJ84OOBcNLwLrA6BQEG46QK+6 5ulPrs0rJerC2BMk2SgkJWLVDEat4/g6jJ5iiRLvJAKwwUyr1vO6NCzCdfOcBHAiFkg+ pBy7OiD5lwWTSWNrxYi3LzrOezht+nyVrj9/j1Pehn1qj6scRyo0GQvJh3g21GZMsfXL Mcs9KJsw3LmhUmLIOhPPgexELfJVPUQh3ZMTp7eUh3b7QF8UepvZDDoEStT99/zft9Te 3Mmd3atmxkpKbb6Ilhfe6fjFI/7FS/rNlPgLoxxb2HtuElGLjk8A3P2U0+vJgGgWfSK3 1qWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tctfMFX0blIzT6zOgVK80hFYKBeXY6BaR+M1MLF63gw=; b=eSVX1d3RrwNxnP8OgG1JTwPMKvd9gc4CZjGZyDm/fzHIWuAolJls3/fig8daGHC/Qq BjxvCf2Cn2ypvzdMUonOs8fOEar6sszT6DXlHrebEXzVo8ORA0Nha7GXtdT4OE1At+/j YZx3OY6vk6pCxYE1RD2UJKV4MVhdFRuKqes5hhBZ+7Nx5Eay62rSTN/di5o7NKPtPg/e GNeJs11m9YAMrN8RW7mfIAg89SGs3F9CJB7dXClA41X0JLBLLy/T9CikGSZvMhUtHc/r A4YjJnmn0gNou1VdIjFr7W/b7N36bO+ozaZy85wFkTsasPudN/Penp8JDP7v62kZWp71 WDMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kYuOu02z; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 135si745030pge.572.2019.01.16.22.30.12; Wed, 16 Jan 2019 22:30:27 -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=@kernel.org header.s=default header.b=kYuOu02z; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727632AbfAPRty (ORCPT + 99 others); Wed, 16 Jan 2019 12:49:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:42130 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727025AbfAPRtx (ORCPT ); Wed, 16 Jan 2019 12:49:53 -0500 Received: from gmail.com (unknown [104.132.1.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C197A20657; Wed, 16 Jan 2019 17:49:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547660993; bh=2lB8+ZRHIr5+BF5FHshO0P519gS9Y2UtOR9Afd54eB0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kYuOu02zgdW53TSXvVVGk0C7RxA7SpI4KE5i6QG9DXNXB7GONXSCsRVxB0qMDud1s OM8e5kkjE07txxAIO8yvjIeudc1chZIFa8cUX5o5XNEoQyZ/ObwMmi6hRjhuiMjYnx ch114F32nkugCLtZtk15odSLDqkyujEcfQB8J8dA= Date: Wed, 16 Jan 2019 09:49:51 -0800 From: Eric Biggers To: Xiongfeng Wang Cc: herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, broonie@kernel.org, ard.biesheuvel@linaro.org, jonathan.cameron@huawei.com Subject: Re: [PATCH 0/5] Crypto Cleanup Message-ID: <20190116174949.GA152952@gmail.com> References: <1547607034-40948-1-git-send-email-wangxiongfeng2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547607034-40948-1-git-send-email-wangxiongfeng2@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 16, 2019 at 10:50:29AM +0800, Xiongfeng Wang wrote: > The patchset introduce a helper to (un)register a array of crypto templates. > The following patches use this helper to simplify the code. This is also > a preparation for a coming patchset, which will register several crypto > templates. > > Xiongfeng Wang (5): > crypto: api - add a helper to (un)register a array of templates > crypto: ccm - use template array registering API to simplify the code > crypto: gcm - use template array registering API to simplify the code > crypto: ctr - use template array registering API to simplify the code > crypto: chacha20poly1305 - use template array registering API to > simplify the code > > crypto/algapi.c | 27 ++++++++++++++++ > crypto/ccm.c | 81 +++++++++++++++-------------------------------- > crypto/chacha20poly1305.c | 38 +++++++++------------- > crypto/ctr.c | 46 ++++++++++----------------- > crypto/gcm.c | 76 +++++++++++++++----------------------------- > include/crypto/algapi.h | 2 ++ > 6 files changed, 113 insertions(+), 157 deletions(-) > > -- > 1.7.12.4 > Hi Xiongfeng, I think this a useful cleanup but can you please rebase this onto cryptodev? There is a conflict in crypto/ctr.c. - Eric