crypto: hisilicon/hpre - optimize registration of ecdh
authorZhiqi Song <songzhiqi1@huawei.com>
Fri, 9 Sep 2022 09:47:01 +0000 (17:47 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Sep 2022 10:29:45 +0000 (18:29 +0800)
commitb1be70a8c983a5bd12d88181b75d0f550086cb44
tree36ca0899ea73cf1961a630362e47c3fa31a8a031
parentf214d59a0603543cfa7c6c1cf2eb130ac77480c3
crypto: hisilicon/hpre - optimize registration of ecdh

Use table to store the different ecdh curve configuration,
making the registration of ecdh clearer and expansion more
convenient.

Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com>
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_crypto.c