2013-06-13 06:42:08 +08:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
2016-06-06 12:43:05 +08:00
|
|
|
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
|
2013-06-13 06:42:08 +08:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
#include <openssl/ec.h>
|
|
|
|
|
2020-05-27 18:30:04 +08:00
|
|
|
Deprecated since OpenSSL 3.0:
|
|
|
|
|
2013-06-13 06:42:08 +08:00
|
|
|
const EC_METHOD *EC_GFp_simple_method(void);
|
|
|
|
const EC_METHOD *EC_GFp_mont_method(void);
|
|
|
|
const EC_METHOD *EC_GFp_nist_method(void);
|
|
|
|
const EC_METHOD *EC_GFp_nistp224_method(void);
|
|
|
|
const EC_METHOD *EC_GFp_nistp256_method(void);
|
|
|
|
const EC_METHOD *EC_GFp_nistp521_method(void);
|
|
|
|
|
|
|
|
const EC_METHOD *EC_GF2m_simple_method(void);
|
|
|
|
|
|
|
|
int EC_METHOD_get_field_type(const EC_METHOD *meth);
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2020-05-27 18:30:04 +08:00
|
|
|
|
|
|
|
All const EC_METHOD *EC_GF* functions were deprecated in OpenSSL 3.0, since
|
|
|
|
EC_METHOD is no longer a public concept.
|
|
|
|
|
2013-06-13 06:42:08 +08:00
|
|
|
The Elliptic Curve library provides a number of different implementations through a single common interface.
|
2015-08-18 03:21:33 +08:00
|
|
|
When constructing a curve using EC_GROUP_new (see L<EC_GROUP_new(3)>) an
|
2013-06-13 06:42:08 +08:00
|
|
|
implementation method must be provided. The functions described here all return a const pointer to an
|
|
|
|
B<EC_METHOD> structure that can be passed to EC_GROUP_NEW. It is important that the correct implementation
|
|
|
|
type for the form of curve selected is used.
|
|
|
|
|
|
|
|
For F2^m curves there is only one implementation choice, i.e. EC_GF2_simple_method.
|
|
|
|
|
|
|
|
For Fp curves the lowest common denominator implementation is the EC_GFp_simple_method implementation. All
|
|
|
|
other implementations are based on this one. EC_GFp_mont_method builds on EC_GFp_simple_method but adds the
|
2015-08-18 03:21:33 +08:00
|
|
|
use of montgomery multiplication (see L<BN_mod_mul_montgomery(3)>). EC_GFp_nist_method
|
2013-06-13 06:42:08 +08:00
|
|
|
offers an implementation optimised for use with NIST recommended curves (NIST curves are available through
|
2015-08-18 03:21:33 +08:00
|
|
|
EC_GROUP_new_by_curve_name as described in L<EC_GROUP_new(3)>).
|
2013-06-13 06:42:08 +08:00
|
|
|
|
|
|
|
The functions EC_GFp_nistp224_method, EC_GFp_nistp256_method and EC_GFp_nistp521_method offer 64 bit
|
|
|
|
optimised implementations for the NIST P224, P256 and P521 curves respectively. Note, however, that these
|
|
|
|
implementations are not available on all platforms.
|
|
|
|
|
2020-05-27 18:30:04 +08:00
|
|
|
EC_METHOD_get_field_type() was deprecated in OpenSSL 3.0.
|
|
|
|
Applications should use EC_GROUP_get_field_type() as a replacement (see L<EC_GROUP_copy(3)>).
|
2013-06-13 06:42:08 +08:00
|
|
|
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
|
|
|
|
All EC_GFp* functions and EC_GF2m_simple_method always return a const pointer to an EC_METHOD structure.
|
|
|
|
|
|
|
|
EC_METHOD_get_field_type returns an integer that identifies the type of field the EC_METHOD structure supports.
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2017-03-11 21:56:44 +08:00
|
|
|
L<crypto(7)>, L<EC_GROUP_new(3)>, L<EC_GROUP_copy(3)>,
|
2015-08-18 03:21:33 +08:00
|
|
|
L<EC_POINT_new(3)>, L<EC_POINT_add(3)>, L<EC_KEY_new(3)>,
|
|
|
|
L<d2i_ECPKParameters(3)>,
|
|
|
|
L<BN_mod_mul_montgomery(3)>
|
2013-06-13 06:42:08 +08:00
|
|
|
|
2020-05-27 18:30:04 +08:00
|
|
|
=head1 HISTORY
|
|
|
|
|
|
|
|
EC_GFp_simple_method(), EC_GFp_mont_method(void),
|
|
|
|
EC_GFp_nist_method(), EC_GFp_nistp224_method(),
|
|
|
|
EC_GFp_nistp256_method(), EC_GFp_nistp521_method(),
|
|
|
|
EC_GF2m_simple_method(), and EC_METHOD_get_field_type()
|
|
|
|
were deprecated in OpenSSL 3.0.
|
|
|
|
|
2016-05-18 23:44:05 +08:00
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2020-06-04 21:33:57 +08:00
|
|
|
Copyright 2013-2020 The OpenSSL Project Authors. All Rights Reserved.
|
2016-05-18 23:44:05 +08:00
|
|
|
|
2018-12-06 21:04:44 +08:00
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 23:44:05 +08:00
|
|
|
this file except in compliance with the License. You can obtain a copy
|
|
|
|
in the file LICENSE in the source distribution or at
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|