Skip to content

Commit

Permalink
crypto: hisilicon/hpre - add 'ECDH' algorithm
Browse files Browse the repository at this point in the history
1. Enable 'ECDH' algorithm in Kunpeng 930;
2. HPRE ECDH Support: ecdh-nist-p192, ecdh-nist-p256.

Signed-off-by: Meng Yu <yumeng18@huawei.com>
Reviewed-by: Zaibo Xu <xuzaibo@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
yumeng0117 authored and herbertx committed Mar 12, 2021
1 parent 14bb767 commit 05e7b90
Show file tree
Hide file tree
Showing 3 changed files with 513 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/crypto/hisilicon/hpre/hpre.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ enum hpre_alg_type {
HPRE_ALG_KG_CRT = 0x3,
HPRE_ALG_DH_G2 = 0x4,
HPRE_ALG_DH = 0x5,
HPRE_ALG_ECC_MUL = 0xD,
};

struct hpre_sqe {
Expand All @@ -104,5 +105,4 @@ struct hisi_qp *hpre_create_qp(u8 type);
int hpre_algs_register(struct hisi_qm *qm);
void hpre_algs_unregister(struct hisi_qm *qm);


#endif
Loading

0 comments on commit 05e7b90

Please sign in to comment.