crypto: ecc - add curve25519 params and expose them

1. Add curve 25519 parameters in 'crypto/ecc_curve_defs.h';
2. Add curve25519 interface 'ecc_get_curve25519_param' in
   'include/crypto/ecc_curve.h', to make its parameters be
   exposed to everyone in kernel tree.

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>
This commit is contained in:
Meng Yu
2021-03-04 14:35:49 +08:00
committed by Herbert Xu
parent 05e7b906aa
commit 8fb9340e17
3 changed files with 30 additions and 0 deletions

View File

@@ -50,4 +50,11 @@ struct ecc_curve {
*/
const struct ecc_curve *ecc_get_curve(unsigned int curve_id);
/**
* ecc_get_curve25519() - get curve25519 curve;
*
* Returns curve25519
*/
const struct ecc_curve *ecc_get_curve25519(void);
#endif