Debian Codegraph @

upstream/debian-unstable/man3/EC_GFp_simple_method.3ssl

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\" ========================================================================
56 .\"
57 .IX Title "EC_GFP_SIMPLE_METHOD 3SSL"
58 .TH EC_GFP_SIMPLE_METHOD 3SSL 2026-04-07 3.6.2 OpenSSL
59 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
60 .\" way too many mistakes in technical documents.
61 .if n .ad l
62 .nh
63 .SH NAME
64 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
65 .SH SYNOPSIS
66 .IX Header "SYNOPSIS"
67 .Vb 1
68 \& #include <openssl/ec.h>
69 .Ve
70 .PP
71 The following functions have been deprecated since OpenSSL 3.0, and can be
72 hidden entirely by defining \fBOPENSSL_API_COMPAT\fR with a suitable version value,
73 see \fBopenssl_user_macros\fR\|(7):
74 .PP
75 .Vb 6
76 \& const EC_METHOD *EC_GFp_simple_method(void);
77 \& const EC_METHOD *EC_GFp_mont_method(void);
78 \& const EC_METHOD *EC_GFp_nist_method(void);
79 \& const EC_METHOD *EC_GFp_nistp224_method(void);
80 \& const EC_METHOD *EC_GFp_nistp256_method(void);
81 \& const EC_METHOD *EC_GFp_nistp521_method(void);
82 \&
83 \& const EC_METHOD *EC_GF2m_simple_method(void);
84 \&
85 \& int EC_METHOD_get_field_type(const EC_METHOD *meth);
86 .Ve
87 .SH DESCRIPTION
88 .IX Header "DESCRIPTION"
89 All const EC_METHOD *EC_GF* functions were deprecated in OpenSSL 3.0, since
90 EC_METHOD is no longer a public concept.
91 .PP
92 The Elliptic Curve library provides a number of different implementations through a single common interface.
93 When constructing a curve using EC_GROUP_new (see \fBEC_GROUP_new\fR\|(3)) an
94 implementation method must be provided. The functions described here all return a const pointer to an
95 \&\fBEC_METHOD\fR structure that can be passed to EC_GROUP_NEW. It is important that the correct implementation
96 type for the form of curve selected is used.
97 .PP
98 For F2^m curves there is only one implementation choice, i.e. EC_GF2_simple_method.
99 .PP
100 For Fp curves the lowest common denominator implementation is the EC_GFp_simple_method implementation. All
101 other implementations are based on this one. EC_GFp_mont_method builds on EC_GFp_simple_method but adds the
102 use of montgomery multiplication (see \fBBN_mod_mul_montgomery\fR\|(3)). EC_GFp_nist_method
103 offers an implementation optimised for use with NIST recommended curves (NIST curves are available through
104 EC_GROUP_new_by_curve_name as described in \fBEC_GROUP_new\fR\|(3)).
105 .PP
106 The functions EC_GFp_nistp224_method, EC_GFp_nistp256_method and EC_GFp_nistp521_method offer 64 bit
107 optimised implementations for the NIST P224, P256 and P521 curves respectively. Note, however, that these
108 implementations are not available on all platforms.
109 .PP
110 \&\fBEC_METHOD_get_field_type()\fR was deprecated in OpenSSL 3.0.
111 Applications should use \fBEC_GROUP_get_field_type()\fR as a replacement (see \fBEC_GROUP_copy\fR\|(3)).
112 .SH "RETURN VALUES"
113 .IX Header "RETURN VALUES"
114 All EC_GFp* functions and EC_GF2m_simple_method always return a const pointer to an EC_METHOD structure.
115 .PP
116 EC_METHOD_get_field_type returns an integer that identifies the type of field the EC_METHOD structure supports.
117 .SH "SEE ALSO"
118 .IX Header "SEE ALSO"
119 \&\fBcrypto\fR\|(7), \fBEC_GROUP_new\fR\|(3), \fBEC_GROUP_copy\fR\|(3),
120 \&\fBEC_POINT_new\fR\|(3), \fBEC_POINT_add\fR\|(3), \fBEC_KEY_new\fR\|(3),
121 \&\fBd2i_ECPKParameters\fR\|(3),
122 \&\fBBN_mod_mul_montgomery\fR\|(3)
123 .SH HISTORY
124 .IX Header "HISTORY"
125 \&\fBEC_GFp_simple_method()\fR, EC_GFp_mont_method(void),
126 \&\fBEC_GFp_nist_method()\fR, \fBEC_GFp_nistp224_method()\fR,
127 \&\fBEC_GFp_nistp256_method()\fR, \fBEC_GFp_nistp521_method()\fR,
128 \&\fBEC_GF2m_simple_method()\fR, and \fBEC_METHOD_get_field_type()\fR
129 were deprecated in OpenSSL 3.0.
130 .SH COPYRIGHT
131 .IX Header "COPYRIGHT"
132 Copyright 2013\-2020 The OpenSSL Project Authors. All Rights Reserved.
133 .PP
134 Licensed under the Apache License 2.0 (the "License"). You may not use
135 this file except in compliance with the License. You can obtain a copy
136 in the file LICENSE in the source distribution or at
137 <https://www.openssl.org/source/license.html>.