aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/crypto/hisilicon/hpre/hpre.h
diff options
context:
space:
mode:
authorMeng Yu <yumeng18@huawei.com>2021-03-04 14:35:50 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-03-13 00:04:04 +1100
commit90274769cf7926a7a14f1cd3f47b66de76e0adb4 (patch)
tree85c476869eb1592a966c9af8899c8726cfbc7201 /drivers/crypto/hisilicon/hpre/hpre.h
parentcrypto: ecc - add curve25519 params and expose them (diff)
downloadwireguard-linux-90274769cf7926a7a14f1cd3f47b66de76e0adb4.tar.xz
wireguard-linux-90274769cf7926a7a14f1cd3f47b66de76e0adb4.zip
crypto: hisilicon/hpre - add 'CURVE25519' algorithm
Enable 'CURVE25519' algorithm in Kunpeng 930. Signed-off-by: Meng Yu <yumeng18@huawei.com> Reviewed-by: Zaibo Xu <xuzaibo@huawei.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon/hpre/hpre.h')
-rw-r--r--drivers/crypto/hisilicon/hpre/hpre.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/hisilicon/hpre/hpre.h b/drivers/crypto/hisilicon/hpre/hpre.h
index 50e6b2e0e517..92892e373cd0 100644
--- a/drivers/crypto/hisilicon/hpre/hpre.h
+++ b/drivers/crypto/hisilicon/hpre/hpre.h
@@ -84,6 +84,8 @@ enum hpre_alg_type {
HPRE_ALG_DH_G2 = 0x4,
HPRE_ALG_DH = 0x5,
HPRE_ALG_ECC_MUL = 0xD,
+ /* shared by x25519 and x448, but x448 is not supported now */
+ HPRE_ALG_CURVE25519_MUL = 0x10,
};
struct hpre_sqe {