Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1656295imu; Thu, 17 Jan 2019 00:50:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Bamj4zmmhO3Qyey3Isp4N7qICBi2FzF4VVNUqEeL9By5Sf84x+R98HH3VvB6ljE4ON8Az X-Received: by 2002:a63:3204:: with SMTP id y4mr12659569pgy.41.1547715020521; Thu, 17 Jan 2019 00:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547715020; cv=none; d=google.com; s=arc-20160816; b=cSM7yhx/ZgRnnIiS0eSMkS5MttzCe6tLRqdOXQgzvyejEf28pBH/aH+p9YX5oGNwny Bp0nlqGjY6UiQyt+RBMHT32dFlPB4jgsUkyv18P+e/nHBQHqAbdgZ6iJl3EbhDqrD0jd JOBw8/sGiUgkUU2xY+IlGI8RQxINf3wgqFOT2NkmUZSq+OHr5q+XOwBwqICpnCZ6hmDO ww0tAYwnp31WqjjAPut94in/sJGQOMIFAEh1Sz11z+el8k/p91+R0XsAYCH2Yd8WdVCw JeDg+EOwm5/epOiBEQN+TmUwjtRNDjt/c20jUoxKQDbEmwLcR8++kYRKBGXuxf5rfovY w7Bg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=5J0SluA8Iq3AnN/QjmdmGrZXYL6h5qeMtKxVizaCuLI=; b=PFlyC19q4d725hOHE/lFBNq/tBYkfqvBg2Ei2LbExIfJH2SJ4Zo2AX4Q5s6DHrZuh3 WIFxDbLE3/hhl7Z+g12ktkXUQUCnA9VLZa5f2tZfJPd/E1LoIt8W6Guh04lpuk91H963 xSh/xSnraVX0Totjxw67SeHBhSzuDp5BmC9reVCFWDBkGzaFT+jjAKrrLbZm6WOz9YyS M2A1j+iIAPsUuylq/z1/I7mwFkN1PDnrpnKnzxW8stSHDS0ZXmccyiJljxmDUCzjIPZ8 UNCgrlYV/hbuNeqcnzGKE43Di1ubJKTtxNOxACkZKGEzLrMeA6NXBaI12DEaeDBI6lGK xW/A== 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 d32si1132096pla.136.2019.01.17.00.50.05; Thu, 17 Jan 2019 00:50:20 -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; 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 S1727486AbfAQCvP (ORCPT + 99 others); Wed, 16 Jan 2019 21:51:15 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:40928 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727449AbfAQCvP (ORCPT ); Wed, 16 Jan 2019 21:51:15 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A3598E4A3C1B1A8C8134; Thu, 17 Jan 2019 10:51:11 +0800 (CST) Received: from [127.0.0.1] (10.184.52.56) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.408.0; Thu, 17 Jan 2019 10:51:01 +0800 Subject: Re: [PATCH 0/5] Crypto Cleanup To: Eric Biggers CC: , , , , , , References: <1547607034-40948-1-git-send-email-wangxiongfeng2@huawei.com> <20190116174949.GA152952@gmail.com> From: Xiongfeng Wang Message-ID: <62435a58-91fb-c48d-73f8-0b7634721924@huawei.com> Date: Thu, 17 Jan 2019 10:50:08 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20190116174949.GA152952@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.184.52.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/1/17 1:49, Eric Biggers wrote: > 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. Hi Eric, thanks for your reply. I will change it in the next version. Thanks, Xiongfeng > > - Eric > > . >