1e71b7053SJung-uk Kim=pod 2e71b7053SJung-uk Kim 3e71b7053SJung-uk Kim=head1 NAME 4e71b7053SJung-uk Kim 5e71b7053SJung-uk KimEC_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 6e71b7053SJung-uk Kim 7e71b7053SJung-uk Kim=head1 SYNOPSIS 8e71b7053SJung-uk Kim 9e71b7053SJung-uk Kim #include <openssl/ec.h> 10e71b7053SJung-uk Kim 11*b077aed3SPierre ProncheryThe following functions have been deprecated since OpenSSL 3.0, and can be 12*b077aed3SPierre Proncheryhidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value, 13*b077aed3SPierre Proncherysee L<openssl_user_macros(7)>: 14*b077aed3SPierre Pronchery 15e71b7053SJung-uk Kim const EC_METHOD *EC_GFp_simple_method(void); 16e71b7053SJung-uk Kim const EC_METHOD *EC_GFp_mont_method(void); 17e71b7053SJung-uk Kim const EC_METHOD *EC_GFp_nist_method(void); 18e71b7053SJung-uk Kim const EC_METHOD *EC_GFp_nistp224_method(void); 19e71b7053SJung-uk Kim const EC_METHOD *EC_GFp_nistp256_method(void); 20e71b7053SJung-uk Kim const EC_METHOD *EC_GFp_nistp521_method(void); 21e71b7053SJung-uk Kim 22e71b7053SJung-uk Kim const EC_METHOD *EC_GF2m_simple_method(void); 23e71b7053SJung-uk Kim 24e71b7053SJung-uk Kim int EC_METHOD_get_field_type(const EC_METHOD *meth); 25e71b7053SJung-uk Kim 26e71b7053SJung-uk Kim=head1 DESCRIPTION 27e71b7053SJung-uk Kim 28*b077aed3SPierre Pronchery 29*b077aed3SPierre ProncheryAll const EC_METHOD *EC_GF* functions were deprecated in OpenSSL 3.0, since 30*b077aed3SPierre ProncheryEC_METHOD is no longer a public concept. 31*b077aed3SPierre Pronchery 32e71b7053SJung-uk KimThe Elliptic Curve library provides a number of different implementations through a single common interface. 33e71b7053SJung-uk KimWhen constructing a curve using EC_GROUP_new (see L<EC_GROUP_new(3)>) an 34e71b7053SJung-uk Kimimplementation method must be provided. The functions described here all return a const pointer to an 35e71b7053SJung-uk KimB<EC_METHOD> structure that can be passed to EC_GROUP_NEW. It is important that the correct implementation 36e71b7053SJung-uk Kimtype for the form of curve selected is used. 37e71b7053SJung-uk Kim 38e71b7053SJung-uk KimFor F2^m curves there is only one implementation choice, i.e. EC_GF2_simple_method. 39e71b7053SJung-uk Kim 40e71b7053SJung-uk KimFor Fp curves the lowest common denominator implementation is the EC_GFp_simple_method implementation. All 41e71b7053SJung-uk Kimother implementations are based on this one. EC_GFp_mont_method builds on EC_GFp_simple_method but adds the 42e71b7053SJung-uk Kimuse of montgomery multiplication (see L<BN_mod_mul_montgomery(3)>). EC_GFp_nist_method 43e71b7053SJung-uk Kimoffers an implementation optimised for use with NIST recommended curves (NIST curves are available through 44e71b7053SJung-uk KimEC_GROUP_new_by_curve_name as described in L<EC_GROUP_new(3)>). 45e71b7053SJung-uk Kim 46e71b7053SJung-uk KimThe functions EC_GFp_nistp224_method, EC_GFp_nistp256_method and EC_GFp_nistp521_method offer 64 bit 47e71b7053SJung-uk Kimoptimised implementations for the NIST P224, P256 and P521 curves respectively. Note, however, that these 48e71b7053SJung-uk Kimimplementations are not available on all platforms. 49e71b7053SJung-uk Kim 50*b077aed3SPierre ProncheryEC_METHOD_get_field_type() was deprecated in OpenSSL 3.0. 51*b077aed3SPierre ProncheryApplications should use EC_GROUP_get_field_type() as a replacement (see L<EC_GROUP_copy(3)>). 52e71b7053SJung-uk Kim 53e71b7053SJung-uk Kim=head1 RETURN VALUES 54e71b7053SJung-uk Kim 55e71b7053SJung-uk KimAll EC_GFp* functions and EC_GF2m_simple_method always return a const pointer to an EC_METHOD structure. 56e71b7053SJung-uk Kim 57e71b7053SJung-uk KimEC_METHOD_get_field_type returns an integer that identifies the type of field the EC_METHOD structure supports. 58e71b7053SJung-uk Kim 59e71b7053SJung-uk Kim=head1 SEE ALSO 60e71b7053SJung-uk Kim 61e71b7053SJung-uk KimL<crypto(7)>, L<EC_GROUP_new(3)>, L<EC_GROUP_copy(3)>, 62e71b7053SJung-uk KimL<EC_POINT_new(3)>, L<EC_POINT_add(3)>, L<EC_KEY_new(3)>, 63e71b7053SJung-uk KimL<d2i_ECPKParameters(3)>, 64e71b7053SJung-uk KimL<BN_mod_mul_montgomery(3)> 65e71b7053SJung-uk Kim 66*b077aed3SPierre Pronchery=head1 HISTORY 67*b077aed3SPierre Pronchery 68*b077aed3SPierre ProncheryEC_GFp_simple_method(), EC_GFp_mont_method(void), 69*b077aed3SPierre ProncheryEC_GFp_nist_method(), EC_GFp_nistp224_method(), 70*b077aed3SPierre ProncheryEC_GFp_nistp256_method(), EC_GFp_nistp521_method(), 71*b077aed3SPierre ProncheryEC_GF2m_simple_method(), and EC_METHOD_get_field_type() 72*b077aed3SPierre Proncherywere deprecated in OpenSSL 3.0. 73*b077aed3SPierre Pronchery 74e71b7053SJung-uk Kim=head1 COPYRIGHT 75e71b7053SJung-uk Kim 76*b077aed3SPierre ProncheryCopyright 2013-2021 The OpenSSL Project Authors. All Rights Reserved. 77e71b7053SJung-uk Kim 78*b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License"). You may not use 79e71b7053SJung-uk Kimthis file except in compliance with the License. You can obtain a copy 80e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at 81e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>. 82e71b7053SJung-uk Kim 83e71b7053SJung-uk Kim=cut 84