
From: Weili Qian <qianweili@huawei.com> The public key "pub_key" has been transferred to the uadk interface as input. Therefore, uadk_ecc_set_public_key is redundant. Remove it. Signed-off-by: Weili Qian <qianweili@huawei.com> Signed-off-by: JiangShui Yang <yangjiangshui@h-partners.com> --- src/uadk_ec.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/uadk_ec.c b/src/uadk_ec.c index 6b4cdc6..d15e742 100644 --- a/src/uadk_ec.c +++ b/src/uadk_ec.c @@ -1364,10 +1364,6 @@ static int ecdh_compute_key(unsigned char **out, size_t *outlen, if (ret) goto uninit_iot; - ret = uadk_ecc_set_public_key(sess, ecdh); - if (ret) - goto uninit_iot; - ret = uadk_ecc_crypto(sess, &req, (void *)sess); if (!ret) goto uninit_iot; -- 2.33.0