crypto: hisilicon/hpre - extend 'cra_driver_name' with curve name
authorHui Tang <tanghui20@huawei.com>
Mon, 10 May 2021 08:59:48 +0000 (16:59 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 May 2021 08:17:29 +0000 (16:17 +0800)
Currently,'cra_driver_name' cannot be used to specify ecdh algorithm
with a special curve, so extending it with curve name.

Fixes: 6763f5ea2d9a ("crypto: ecdh - move curve_id of ECDH from ...")
Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_crypto.c

index a380087c83f771ee39b6c2c930768ed2e7d2918a..c07a7f52d857ea63713a1679258efc254b4c54fb 100644 (file)
@@ -1940,7 +1940,7 @@ static struct kpp_alg ecdh_nist_p192 = {
                .cra_ctxsize = sizeof(struct hpre_ctx),
                .cra_priority = HPRE_CRYPTO_ALG_PRI,
                .cra_name = "ecdh-nist-p192",
-               .cra_driver_name = "hpre-ecdh",
+               .cra_driver_name = "hpre-ecdh-nist-p192",
                .cra_module = THIS_MODULE,
        },
 };
@@ -1957,7 +1957,7 @@ static struct kpp_alg ecdh_nist_p256 = {
                .cra_ctxsize = sizeof(struct hpre_ctx),
                .cra_priority = HPRE_CRYPTO_ALG_PRI,
                .cra_name = "ecdh-nist-p256",
-               .cra_driver_name = "hpre-ecdh",
+               .cra_driver_name = "hpre-ecdh-nist-p256",
                .cra_module = THIS_MODULE,
        },
 };