projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed27802
)
crypto: hisilicon/hpre - add ecc algorithm inqury for uacce device
author
Hui Tang
<tanghui20@huawei.com>
Mon, 18 Jan 2021 08:18:19 +0000
(16:18 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 29 Jan 2021 04:57:58 +0000
(15:57 +1100)
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>
drivers/crypto/hisilicon/hpre/hpre_main.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/hisilicon/hpre/hpre_main.c
b/drivers/crypto/hisilicon/hpre/hpre_main.c
index d46086e1b922915d71471bc72213b9c1a3898467..3b3481e7527cd3177187d6fd5ee2cbb27f2d87ca 100644
(file)
--- a/
drivers/crypto/hisilicon/hpre/hpre_main.c
+++ b/
drivers/crypto/hisilicon/hpre/hpre_main.c
@@
-778,7
+778,10
@@
static int hpre_qm_init(struct hisi_qm *qm, struct pci_dev *pdev)
return -EINVAL;
}
- qm->algs = "rsa\ndh\n";
+ if (pdev->revision >= QM_HW_V3)
+ qm->algs = "rsa\ndh\necdh\nx25519\nx448\necdsa\nsm2\n";
+ else
+ qm->algs = "rsa\ndh\n";
qm->mode = uacce_mode;
qm->pdev = pdev;
qm->ver = pdev->revision;