crypto: ecc - add curve25519 params and expose them
authorMeng Yu <yumeng18@huawei.com>
Thu, 4 Mar 2021 06:35:49 +0000 (14:35 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Mar 2021 13:04:04 +0000 (00:04 +1100)
commit8fb9340e178ad32084fc189e6a2b2abfbc091df7
tree6cf0e7a57c518d5559a01c5c0c128c4f8d04a4f2
parent05e7b906aa7c8690906135dc86ab0fc12ee37481
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>
crypto/ecc.c
crypto/ecc_curve_defs.h
include/crypto/ecc_curve.h