diff options
author | Meng Yu <yumeng18@huawei.com> | 2021-03-04 09:35:49 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-03-12 16:04:04 +0300 |
commit | 8fb9340e178ad32084fc189e6a2b2abfbc091df7 (patch) | |
tree | 6cf0e7a57c518d5559a01c5c0c128c4f8d04a4f2 /include/crypto/ecc_curve.h | |
parent | 05e7b906aa7c8690906135dc86ab0fc12ee37481 (diff) | |
download | linux-8fb9340e178ad32084fc189e6a2b2abfbc091df7.tar.xz |
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>
Diffstat (limited to 'include/crypto/ecc_curve.h')
-rw-r--r-- | include/crypto/ecc_curve.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/crypto/ecc_curve.h b/include/crypto/ecc_curve.h index 19a35dae88a1..70964781eb68 100644 --- a/include/crypto/ecc_curve.h +++ b/include/crypto/ecc_curve.h @@ -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 |