Return-Path: Received: from szxga05-in.huawei.com ([45.249.212.191]:2257 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727084AbfARF65 (ORCPT ); Fri, 18 Jan 2019 00:58:57 -0500 From: Xiongfeng Wang To: , , CC: , , , , , Subject: [PATCH V3 0/5] Crypto Cleanup Date: Fri, 18 Jan 2019 13:58:10 +0800 Message-ID: <1547791095-48339-1-git-send-email-wangxiongfeng2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-crypto-owner@vger.kernel.org List-ID: 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. Changelog: v2 -> v3: remove the extra blank line in the fourth patch change author to Xiongfeng Wang v1 -> v2: rebased to cryptodev, fix some format issue 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 | 78 ++++++++++++++--------------------------------- crypto/chacha20poly1305.c | 37 +++++++++------------- crypto/ctr.c | 42 +++++++++---------------- crypto/gcm.c | 73 ++++++++++++++------------------------------ include/crypto/algapi.h | 2 ++ 6 files changed, 103 insertions(+), 156 deletions(-) -- 1.7.12.4