Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6328108pxu; Wed, 23 Dec 2020 22:13:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJySpBGGFLx4DzZEqhZX4Ejh19BX8epXOLlUA/K/VGo0fBvMwu7bqHRTtXs047Crtj42UCQA X-Received: by 2002:a17:906:f1cc:: with SMTP id gx12mr25887767ejb.164.1608790398208; Wed, 23 Dec 2020 22:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608790398; cv=none; d=google.com; s=arc-20160816; b=hE5u5xbwVGOtExStKqidm4gp3TxTVyqb449IdEUa2FBgDtIankmhnLuSnPcCbXkyij mds+SvYkvzJcwa0AMvk6JdYfdUO0U8xfTGCMvqFIBmTL3pfg/h+mzrRRH3tR3fz1nzd/ W1A/Dri892n5pbZOn0RaUdaNSJntCBwGafwY76W0FsXKDeuSG/OZWBugUqbf2AVLeg10 ZQK5i0+WPixdH5FgdLvHdjxPsGS3RnwOOGhg+UJG4Cff9Y3skuiW4CZeoasEGnWXLPjk o+z6/X4oCdRIXmjeQvTe/InxYeT79sW/Q2vNaEQiQc3G0/K7MH/uGK6WO2v5QrNpul2Q sJrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=MA/Nar5xPCM2rpTF2g7Sr9E8AFgf6itNr16labmTIig=; b=W73RWWB4hwnnKQOCmJqg8KoiFcT0N/ESNhg05AwHrAWP67QZ4i2G7XHDhiKS+3hvXf /86vJmLxl9y0OTwjRv5Gvt2U43CxBXBtvp4/ZS2eUMjYN+glCaFkZMRnKjDShProke7W EEmYmgfgR4iyil2VudkfHhV8KGaW7zhafIYgutE/yChWvrYNAJAwUVbwTRaWKlkIobe4 imgQhvSTQgCfyCq7FsMnocrf4vBZcKH6MeILPi84kUmpbwP6i9xvUMrtXjUUc2ixEYNf iiU6LTpaCp0X7PXpUJbGrCJ34x+pWyg1jXsh0w/KmrptHUhb3eQL51VsIcvxa3RfdwoG YBcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si12793597ejd.342.2020.12.23.22.12.56; Wed, 23 Dec 2020 22:13:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728312AbgLXGLT (ORCPT + 99 others); Thu, 24 Dec 2020 01:11:19 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:9480 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbgLXGLQ (ORCPT ); Thu, 24 Dec 2020 01:11:16 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4D1fn14pT7zhwtQ; Thu, 24 Dec 2020 14:09:57 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.498.0; Thu, 24 Dec 2020 14:10:25 +0800 From: Meng Yu To: , CC: , , , , Subject: [PATCH v5 0/5] add ECDH and CURVE25519 algorithms support for Kunpeng 930 Date: Thu, 24 Dec 2020 14:08:22 +0800 Message-ID: <1608790107-32617-1-git-send-email-yumeng18@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 1. Move elliptic curve parameter definitions out to "include/crypto"; 2. Add some new elliptic curve parameters definitions, and reorder ECC 'Curves IDs'; 3. Add ECDH and CURVE25519 algorithms support for Kunpeng 930. These patches depend on: [v2,1/6] crypto: hisilicon/hpre - add version adapt to new algorithms, https://patchwork.kernel.org/project/linux-crypto/patch/1607598607-8728- 2-git-send-email-liulongfang@huawei.com/ v4->v5: - patch #4: delete P-128 and P-320 curve, as the few using case in the kernel v3 -> v4: - patch #3: add new, move ecc_curve params to "include/crypto" v2 -> v3: - patch #5: fix sparse warnings - patch #5: add 'CRYPTO_LIB_CURVE25519_GENERIC' in 'Kconfig' v1 -> v2: - patch #5: delete `curve25519_null_point' Hui Tang (1): crypto: hisilicon/hpre - add some updates to adapt to Kunpeng 930 Meng Yu (4): crypto: hisilicon/hpre - add algorithm type crypto: expose elliptic curve parameters as Crypto APIs crypto: hisilicon/hpre - add 'ECDH' algorithm crypto: hisilicon/hpre - add 'CURVE25519' algorithm crypto/ecc.c | 5 +- crypto/ecc.h | 37 +- crypto/ecc_curve_defs.h | 57 -- crypto/ecrdsa_defs.h | 2 +- crypto/testmgr.h | 12 +- drivers/crypto/hisilicon/Kconfig | 1 + drivers/crypto/hisilicon/hpre/hpre.h | 22 +- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 860 +++++++++++++++++++++++++++- drivers/crypto/hisilicon/hpre/hpre_main.c | 105 ++-- include/crypto/ecc_curve_defs.h | 212 +++++++ include/crypto/ecdh.h | 5 +- 11 files changed, 1168 insertions(+), 150 deletions(-) delete mode 100644 crypto/ecc_curve_defs.h create mode 100644 include/crypto/ecc_curve_defs.h -- 2.8.1