2
0

EC_GFp_simple_method.pod 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. =pod
  2. =head1 NAME
  3. EC_GFp_simple_method, EC_GFp_mont_method, EC_GFp_nist_method, EC_GFp_nistp224_method, EC_GFp_nistp256_method, EC_GFp_nistp521_method, EC_GF2m_simple_method, EC_METHOD_get_field_type - Functions for obtaining EC_METHOD objects
  4. =head1 SYNOPSIS
  5. #include <openssl/ec.h>
  6. Deprecated since OpenSSL 3.0:
  7. const EC_METHOD *EC_GFp_simple_method(void);
  8. const EC_METHOD *EC_GFp_mont_method(void);
  9. const EC_METHOD *EC_GFp_nist_method(void);
  10. const EC_METHOD *EC_GFp_nistp224_method(void);
  11. const EC_METHOD *EC_GFp_nistp256_method(void);
  12. const EC_METHOD *EC_GFp_nistp521_method(void);
  13. const EC_METHOD *EC_GF2m_simple_method(void);
  14. int EC_METHOD_get_field_type(const EC_METHOD *meth);
  15. =head1 DESCRIPTION
  16. All const EC_METHOD *EC_GF* functions were deprecated in OpenSSL 3.0, since
  17. EC_METHOD is no longer a public concept.
  18. The Elliptic Curve library provides a number of different implementations through a single common interface.
  19. When constructing a curve using EC_GROUP_new (see L<EC_GROUP_new(3)>) an
  20. implementation method must be provided. The functions described here all return a const pointer to an
  21. B<EC_METHOD> structure that can be passed to EC_GROUP_NEW. It is important that the correct implementation
  22. type for the form of curve selected is used.
  23. For F2^m curves there is only one implementation choice, i.e. EC_GF2_simple_method.
  24. For Fp curves the lowest common denominator implementation is the EC_GFp_simple_method implementation. All
  25. other implementations are based on this one. EC_GFp_mont_method builds on EC_GFp_simple_method but adds the
  26. use of montgomery multiplication (see L<BN_mod_mul_montgomery(3)>). EC_GFp_nist_method
  27. offers an implementation optimised for use with NIST recommended curves (NIST curves are available through
  28. EC_GROUP_new_by_curve_name as described in L<EC_GROUP_new(3)>).
  29. The functions EC_GFp_nistp224_method, EC_GFp_nistp256_method and EC_GFp_nistp521_method offer 64 bit
  30. optimised implementations for the NIST P224, P256 and P521 curves respectively. Note, however, that these
  31. implementations are not available on all platforms.
  32. EC_METHOD_get_field_type() was deprecated in OpenSSL 3.0.
  33. Applications should use EC_GROUP_get_field_type() as a replacement (see L<EC_GROUP_copy(3)>).
  34. =head1 RETURN VALUES
  35. All EC_GFp* functions and EC_GF2m_simple_method always return a const pointer to an EC_METHOD structure.
  36. EC_METHOD_get_field_type returns an integer that identifies the type of field the EC_METHOD structure supports.
  37. =head1 SEE ALSO
  38. L<crypto(7)>, L<EC_GROUP_new(3)>, L<EC_GROUP_copy(3)>,
  39. L<EC_POINT_new(3)>, L<EC_POINT_add(3)>, L<EC_KEY_new(3)>,
  40. L<d2i_ECPKParameters(3)>,
  41. L<BN_mod_mul_montgomery(3)>
  42. =head1 HISTORY
  43. EC_GFp_simple_method(), EC_GFp_mont_method(void),
  44. EC_GFp_nist_method(), EC_GFp_nistp224_method(),
  45. EC_GFp_nistp256_method(), EC_GFp_nistp521_method(),
  46. EC_GF2m_simple_method(), and EC_METHOD_get_field_type()
  47. were deprecated in OpenSSL 3.0.
  48. =head1 COPYRIGHT
  49. Copyright 2013-2020 The OpenSSL Project Authors. All Rights Reserved.
  50. Licensed under the Apache License 2.0 (the "License"). You may not use
  51. this file except in compliance with the License. You can obtain a copy
  52. in the file LICENSE in the source distribution or at
  53. L<https://www.openssl.org/source/license.html>.
  54. =cut