Skip to content

Commit bc00598

Browse files
Hui Tangherbertx
authored andcommitted
crypto: hisilicon/hpre - add ecc algorithm inqury for uacce device
Uacce SysFS support more algorithms inqury such as 'ecdh/ecdsa/sm2/x25519/x448' Signed-off-by: Hui Tang <tanghui20@huawei.com> Reviewed-by: Zaibo Xu <xuzaibo@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent ed27802 commit bc00598

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/crypto/hisilicon/hpre/hpre_main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,10 @@ static int hpre_qm_init(struct hisi_qm *qm, struct pci_dev *pdev)
778778
return -EINVAL;
779779
}
780780

781-
qm->algs = "rsa\ndh\n";
781+
if (pdev->revision >= QM_HW_V3)
782+
qm->algs = "rsa\ndh\necdh\nx25519\nx448\necdsa\nsm2\n";
783+
else
784+
qm->algs = "rsa\ndh\n";
782785
qm->mode = uacce_mode;
783786
qm->pdev = pdev;
784787
qm->ver = pdev->revision;

0 commit comments

Comments
 (0)