mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user