ec.h
Go to the documentation of this file.
1 /* Originally written by Bodo Moeller for the OpenSSL project.
2  * ====================================================================
3  * Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * 1. Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * 2. Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in
14  * the documentation and/or other materials provided with the
15  * distribution.
16  *
17  * 3. All advertising materials mentioning features or use of this
18  * software must display the following acknowledgment:
19  * "This product includes software developed by the OpenSSL Project
20  * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
21  *
22  * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
23  * endorse or promote products derived from this software without
24  * prior written permission. For written permission, please contact
25  * openssl-core@openssl.org.
26  *
27  * 5. Products derived from this software may not be called "OpenSSL"
28  * nor may "OpenSSL" appear in their names without prior written
29  * permission of the OpenSSL Project.
30  *
31  * 6. Redistributions of any form whatsoever must retain the following
32  * acknowledgment:
33  * "This product includes software developed by the OpenSSL Project
34  * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
35  *
36  * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
37  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
38  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
39  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
40  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
42  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
43  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
44  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
45  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
46  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
47  * OF THE POSSIBILITY OF SUCH DAMAGE.
48  * ====================================================================
49  *
50  * This product includes cryptographic software written by Eric Young
51  * (eay@cryptsoft.com). This product includes software written by Tim
52  * Hudson (tjh@cryptsoft.com).
53  *
54  */
55 /* ====================================================================
56  * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
57  *
58  * Portions of the attached software ("Contribution") are developed by
59  * SUN MICROSYSTEMS, INC., and are contributed to the OpenSSL project.
60  *
61  * The Contribution is licensed pursuant to the OpenSSL open source
62  * license provided above.
63  *
64  * The elliptic curve binary polynomial software is originally written by
65  * Sheueling Chang Shantz and Douglas Stebila of Sun Microsystems
66  * Laboratories. */
67 
68 #ifndef OPENSSL_HEADER_EC_H
69 #define OPENSSL_HEADER_EC_H
70 
71 #include <openssl/base.h>
72 
73 #if defined(__cplusplus)
74 extern "C" {
75 #endif
76 
77 
78 // Low-level operations on elliptic curves.
79 
80 
81 // point_conversion_form_t enumerates forms, as defined in X9.62 (ECDSA), for
82 // the encoding of a elliptic curve point (x,y)
83 typedef enum {
84  // POINT_CONVERSION_COMPRESSED indicates that the point is encoded as z||x,
85  // where the octet z specifies which solution of the quadratic equation y
86  // is.
88 
89  // POINT_CONVERSION_UNCOMPRESSED indicates that the point is encoded as
90  // z||x||y, where z is the octet 0x04.
92 
93  // POINT_CONVERSION_HYBRID indicates that the point is encoded as z||x||y,
94  // where z specifies which solution of the quadratic equation y is. This is
95  // not supported by the code and has never been observed in use.
96  //
97  // TODO(agl): remove once node.js no longer references this.
100 
101 
102 // Elliptic curve groups.
103 
104 // EC_GROUP_new_by_curve_name returns a fresh EC_GROUP object for the elliptic
105 // curve specified by |nid|, or NULL on unsupported NID or allocation failure.
106 //
107 // The supported NIDs are:
108 // NID_secp224r1 (P-224),
109 // NID_X9_62_prime256v1 (P-256),
110 // NID_secp384r1 (P-384),
111 // NID_secp521r1 (P-521)
112 //
113 // If in doubt, use |NID_X9_62_prime256v1|, or see the curve25519.h header for
114 // more modern primitives.
116 
117 // EC_GROUP_free releases a reference to |group|.
119 
120 // EC_GROUP_dup takes a reference to |a| and returns it.
122 
123 // EC_GROUP_cmp returns zero if |a| and |b| are the same group and non-zero
124 // otherwise.
125 OPENSSL_EXPORT int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b,
126  BN_CTX *ignored);
127 
128 // EC_GROUP_get0_generator returns a pointer to the internal |EC_POINT| object
129 // in |group| that specifies the generator for the group.
131 
132 // EC_GROUP_get0_order returns a pointer to the internal |BIGNUM| object in
133 // |group| that specifies the order of the group.
135 
136 // EC_GROUP_order_bits returns the number of bits of the order of |group|.
138 
139 // EC_GROUP_get_cofactor sets |*cofactor| to the cofactor of |group| using
140 // |ctx|, if it's not NULL. It returns one on success and zero otherwise.
142  BIGNUM *cofactor, BN_CTX *ctx);
143 
144 // EC_GROUP_get_curve_GFp gets various parameters about a group. It sets
145 // |*out_p| to the order of the coordinate field and |*out_a| and |*out_b| to
146 // the parameters of the curve when expressed as y² = x³ + ax + b. Any of the
147 // output parameters can be NULL. It returns one on success and zero on
148 // error.
150  BIGNUM *out_a, BIGNUM *out_b,
151  BN_CTX *ctx);
152 
153 // EC_GROUP_get_curve_name returns a NID that identifies |group|.
155 
156 // EC_GROUP_get_degree returns the number of bits needed to represent an
157 // element of the field underlying |group|.
159 
160 // EC_curve_nid2nist returns the NIST name of the elliptic curve specified by
161 // |nid|, or NULL if |nid| is not a NIST curve. For example, it returns "P-256"
162 // for |NID_X9_62_prime256v1|.
163 OPENSSL_EXPORT const char *EC_curve_nid2nist(int nid);
164 
165 // EC_curve_nist2nid returns the NID of the elliptic curve specified by the NIST
166 // name |name|, or |NID_undef| if |name| is not a recognized name. For example,
167 // it returns |NID_X9_62_prime256v1| for "P-256".
168 OPENSSL_EXPORT int EC_curve_nist2nid(const char *name);
169 
170 
171 // Points on elliptic curves.
172 
173 // EC_POINT_new returns a fresh |EC_POINT| object in the given group, or NULL
174 // on error.
176 
177 // EC_POINT_free frees |point| and the data that it points to.
179 
180 // EC_POINT_copy sets |*dest| equal to |*src|. It returns one on success and
181 // zero otherwise.
183 
184 // EC_POINT_dup returns a fresh |EC_POINT| that contains the same values as
185 // |src|, or NULL on error.
187  const EC_GROUP *group);
188 
189 // EC_POINT_set_to_infinity sets |point| to be the "point at infinity" for the
190 // given group.
192  EC_POINT *point);
193 
194 // EC_POINT_is_at_infinity returns one iff |point| is the point at infinity and
195 // zero otherwise.
197  const EC_POINT *point);
198 
199 // EC_POINT_is_on_curve returns one if |point| is an element of |group| and
200 // and zero otherwise or when an error occurs. This is different from OpenSSL,
201 // which returns -1 on error. If |ctx| is non-NULL, it may be used.
203  const EC_POINT *point, BN_CTX *ctx);
204 
205 // EC_POINT_cmp returns zero if |a| is equal to |b|, greater than zero if
206 // not equal and -1 on error. If |ctx| is not NULL, it may be used.
208  const EC_POINT *b, BN_CTX *ctx);
209 
210 
211 // Point conversion.
212 
213 // EC_POINT_get_affine_coordinates_GFp sets |x| and |y| to the affine value of
214 // |point| using |ctx|, if it's not NULL. It returns one on success and zero
215 // otherwise.
216 //
217 // Either |x| or |y| may be NULL to skip computing that coordinate. This is
218 // slightly faster in the common case where only the x-coordinate is needed.
220  const EC_POINT *point,
221  BIGNUM *x, BIGNUM *y,
222  BN_CTX *ctx);
223 
224 // EC_POINT_get_affine_coordinates is an alias of
225 // |EC_POINT_get_affine_coordinates_GFp|.
227  const EC_POINT *point,
228  BIGNUM *x, BIGNUM *y,
229  BN_CTX *ctx);
230 
231 // EC_POINT_set_affine_coordinates_GFp sets the value of |point| to be
232 // (|x|, |y|). The |ctx| argument may be used if not NULL. It returns one
233 // on success or zero on error. It's considered an error if the point is not on
234 // the curve.
235 //
236 // Note that the corresponding function in OpenSSL versions prior to 1.0.2s does
237 // not check if the point is on the curve. This is a security-critical check, so
238 // code additionally supporting OpenSSL should repeat the check with
239 // |EC_POINT_is_on_curve| or check for older OpenSSL versions with
240 // |OPENSSL_VERSION_NUMBER|.
242  EC_POINT *point,
243  const BIGNUM *x,
244  const BIGNUM *y,
245  BN_CTX *ctx);
246 
247 // EC_POINT_set_affine_coordinates is an alias of
248 // |EC_POINT_set_affine_coordinates_GFp|.
250  EC_POINT *point,
251  const BIGNUM *x,
252  const BIGNUM *y,
253  BN_CTX *ctx);
254 
255 // EC_POINT_point2oct serialises |point| into the X9.62 form given by |form|
256 // into, at most, |len| bytes at |buf|. It returns the number of bytes written
257 // or zero on error if |buf| is non-NULL, else the number of bytes needed. The
258 // |ctx| argument may be used if not NULL.
260  const EC_POINT *point,
262  uint8_t *buf, size_t len, BN_CTX *ctx);
263 
264 // EC_POINT_point2cbb behaves like |EC_POINT_point2oct| but appends the
265 // serialised point to |cbb|. It returns one on success and zero on error.
267  const EC_POINT *point,
269  BN_CTX *ctx);
270 
271 // EC_POINT_oct2point sets |point| from |len| bytes of X9.62 format
272 // serialisation in |buf|. It returns one on success and zero on error. The
273 // |ctx| argument may be used if not NULL. It's considered an error if |buf|
274 // does not represent a point on the curve.
276  const uint8_t *buf, size_t len,
277  BN_CTX *ctx);
278 
279 // EC_POINT_set_compressed_coordinates_GFp sets |point| to equal the point with
280 // the given |x| coordinate and the y coordinate specified by |y_bit| (see
281 // X9.62). It returns one on success and zero otherwise.
283  const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, int y_bit,
284  BN_CTX *ctx);
285 
286 
287 // Group operations.
288 
289 // EC_POINT_add sets |r| equal to |a| plus |b|. It returns one on success and
290 // zero otherwise. If |ctx| is not NULL, it may be used.
292  const EC_POINT *a, const EC_POINT *b,
293  BN_CTX *ctx);
294 
295 // EC_POINT_dbl sets |r| equal to |a| plus |a|. It returns one on success and
296 // zero otherwise. If |ctx| is not NULL, it may be used.
298  const EC_POINT *a, BN_CTX *ctx);
299 
300 // EC_POINT_invert sets |a| equal to minus |a|. It returns one on success and
301 // zero otherwise. If |ctx| is not NULL, it may be used.
303  BN_CTX *ctx);
304 
305 // EC_POINT_mul sets r = generator*n + q*m. It returns one on success and zero
306 // otherwise. If |ctx| is not NULL, it may be used.
308  const BIGNUM *n, const EC_POINT *q,
309  const BIGNUM *m, BN_CTX *ctx);
310 
311 
312 // Deprecated functions.
313 
314 // EC_GROUP_new_curve_GFp creates a new, arbitrary elliptic curve group based
315 // on the equation y² = x³ + a·x + b. It returns the new group or NULL on
316 // error.
317 //
318 // This new group has no generator. It is an error to use a generator-less group
319 // with any functions except for |EC_GROUP_free|, |EC_POINT_new|,
320 // |EC_POINT_set_affine_coordinates_GFp|, and |EC_GROUP_set_generator|.
321 //
322 // |EC_GROUP|s returned by this function will always compare as unequal via
323 // |EC_GROUP_cmp| (even to themselves). |EC_GROUP_get_curve_name| will always
324 // return |NID_undef|.
325 //
326 // Avoid using arbitrary curves and use |EC_GROUP_new_by_curve_name| instead.
328  const BIGNUM *a,
329  const BIGNUM *b, BN_CTX *ctx);
330 
331 // EC_GROUP_set_generator sets the generator for |group| to |generator|, which
332 // must have the given order and cofactor. It may only be used with |EC_GROUP|
333 // objects returned by |EC_GROUP_new_curve_GFp| and may only be used once on
334 // each group. |generator| must have been created using |group|.
336  const EC_POINT *generator,
337  const BIGNUM *order,
338  const BIGNUM *cofactor);
339 
340 // EC_GROUP_get_order sets |*order| to the order of |group|, if it's not
341 // NULL. It returns one on success and zero otherwise. |ctx| is ignored. Use
342 // |EC_GROUP_get0_order| instead.
344  BN_CTX *ctx);
345 
346 #define OPENSSL_EC_EXPLICIT_CURVE 0
347 #define OPENSSL_EC_NAMED_CURVE 1
348 
349 // EC_GROUP_set_asn1_flag does nothing.
351 
352 // EC_GROUP_get_asn1_flag returns |OPENSSL_EC_NAMED_CURVE|.
354 
355 typedef struct ec_method_st EC_METHOD;
356 
357 // EC_GROUP_method_of returns a dummy non-NULL pointer.
359 
360 // EC_METHOD_get_field_type returns NID_X9_62_prime_field.
362 
363 // EC_GROUP_set_point_conversion_form aborts the process if |form| is not
364 // |POINT_CONVERSION_UNCOMPRESSED| and otherwise does nothing.
367 
368 // EC_builtin_curve describes a supported elliptic curve.
369 typedef struct {
370  int nid;
371  const char *comment;
373 
374 // EC_get_builtin_curves writes at most |max_num_curves| elements to
375 // |out_curves| and returns the total number that it would have written, had
376 // |max_num_curves| been large enough.
377 //
378 // The |EC_builtin_curve| items describe the supported elliptic curves.
380  size_t max_num_curves);
381 
382 // EC_POINT_clear_free calls |EC_POINT_free|.
384 
385 
386 #if defined(__cplusplus)
387 } // extern C
388 #endif
389 
390 // Old code expects to get EC_KEY from ec.h.
391 #include <openssl/ec_key.h>
392 
393 #if defined(__cplusplus)
394 extern "C++" {
395 
397 
400 
402 
403 } // extern C++
404 
405 #endif
406 
407 #define EC_R_BUFFER_TOO_SMALL 100
408 #define EC_R_COORDINATES_OUT_OF_RANGE 101
409 #define EC_R_D2I_ECPKPARAMETERS_FAILURE 102
410 #define EC_R_EC_GROUP_NEW_BY_NAME_FAILURE 103
411 #define EC_R_GROUP2PKPARAMETERS_FAILURE 104
412 #define EC_R_I2D_ECPKPARAMETERS_FAILURE 105
413 #define EC_R_INCOMPATIBLE_OBJECTS 106
414 #define EC_R_INVALID_COMPRESSED_POINT 107
415 #define EC_R_INVALID_COMPRESSION_BIT 108
416 #define EC_R_INVALID_ENCODING 109
417 #define EC_R_INVALID_FIELD 110
418 #define EC_R_INVALID_FORM 111
419 #define EC_R_INVALID_GROUP_ORDER 112
420 #define EC_R_INVALID_PRIVATE_KEY 113
421 #define EC_R_MISSING_PARAMETERS 114
422 #define EC_R_MISSING_PRIVATE_KEY 115
423 #define EC_R_NON_NAMED_CURVE 116
424 #define EC_R_NOT_INITIALIZED 117
425 #define EC_R_PKPARAMETERS2GROUP_FAILURE 118
426 #define EC_R_POINT_AT_INFINITY 119
427 #define EC_R_POINT_IS_NOT_ON_CURVE 120
428 #define EC_R_SLOT_FULL 121
429 #define EC_R_UNDEFINED_GENERATOR 122
430 #define EC_R_UNKNOWN_GROUP 123
431 #define EC_R_UNKNOWN_ORDER 124
432 #define EC_R_WRONG_ORDER 125
433 #define EC_R_BIGNUM_OUT_OF_RANGE 126
434 #define EC_R_WRONG_CURVE_PARAMETERS 127
435 #define EC_R_DECODE_ERROR 128
436 #define EC_R_ENCODE_ERROR 129
437 #define EC_R_GROUP_MISMATCH 130
438 #define EC_R_INVALID_COFACTOR 131
439 #define EC_R_PUBLIC_KEY_VALIDATION_FAILED 132
440 #define EC_R_INVALID_SCALAR 133
441 
442 #endif // OPENSSL_HEADER_EC_H
EC_POINT_dbl
OPENSSL_EXPORT int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, BN_CTX *ctx)
Definition: ec.c:906
flag
uint32_t flag
Definition: ssl_versions.cc:162
EC_GROUP_set_point_conversion_form
OPENSSL_EXPORT void EC_GROUP_set_point_conversion_form(EC_GROUP *group, point_conversion_form_t form)
Definition: ec.c:1250
gen_build_yaml.out
dictionary out
Definition: src/benchmark/gen_build_yaml.py:24
ec_method_st
Definition: third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/internal.h:463
EC_POINT_free
OPENSSL_EXPORT void EC_POINT_free(EC_POINT *point)
Definition: ec.c:707
ctx
Definition: benchmark-async.c:30
EC_POINT_new
OPENSSL_EXPORT EC_POINT * EC_POINT_new(const EC_GROUP *group)
Definition: ec.c:680
EC_GROUP_set_asn1_flag
OPENSSL_EXPORT void EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag)
Definition: ec.c:1233
EC_POINT_mul
OPENSSL_EXPORT int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx)
Definition: ec.c:946
EC_builtin_curve::nid
int nid
Definition: ec.h:370
EC_GROUP_get_degree
OPENSSL_EXPORT unsigned EC_GROUP_get_degree(const EC_GROUP *group)
Definition: ec.c:646
EC_POINT_get_affine_coordinates_GFp
OPENSSL_EXPORT int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, const EC_POINT *point, BIGNUM *x, BIGNUM *y, BN_CTX *ctx)
Definition: ec.c:778
EC_POINT_is_on_curve
OPENSSL_EXPORT int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx)
Definition: ec.c:757
y
const double y
Definition: bloaty/third_party/googletest/googlemock/test/gmock-matchers_test.cc:3611
buf
voidpf void * buf
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
EC_curve_nist2nid
OPENSSL_EXPORT int EC_curve_nist2nid(const char *name)
Definition: ec.c:664
setup.name
name
Definition: setup.py:542
EC_GROUP_get0_order
const OPENSSL_EXPORT BIGNUM * EC_GROUP_get0_order(const EC_GROUP *group)
Definition: ec.c:617
a
int a
Definition: abseil-cpp/absl/container/internal/hash_policy_traits_test.cc:88
bignum_ctx
Definition: ctx.c:91
xds_manager.p
p
Definition: xds_manager.py:60
EC_POINT_clear_free
OPENSSL_EXPORT void EC_POINT_clear_free(EC_POINT *point)
Definition: ec.c:711
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
EC_GROUP_cmp
OPENSSL_EXPORT int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ignored)
Definition: ec.c:586
base.h
EC_GROUP_dup
OPENSSL_EXPORT EC_GROUP * EC_GROUP_dup(const EC_GROUP *a)
Definition: ec.c:572
EC_GROUP_new_by_curve_name
OPENSSL_EXPORT EC_GROUP * EC_GROUP_new_by_curve_name(int nid)
Definition: ec.c:506
EC_POINT_get_affine_coordinates
OPENSSL_EXPORT int EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, BIGNUM *x, BIGNUM *y, BN_CTX *ctx)
Definition: ec.c:800
POINT_CONVERSION_HYBRID
@ POINT_CONVERSION_HYBRID
Definition: ec.h:98
EC_builtin_curve::comment
const char * comment
Definition: ec.h:371
EC_GROUP_get_curve_name
OPENSSL_EXPORT int EC_GROUP_get_curve_name(const EC_GROUP *group)
Definition: ec.c:644
EC_get_builtin_curves
OPENSSL_EXPORT size_t EC_get_builtin_curves(EC_builtin_curve *out_curves, size_t max_num_curves)
Definition: ec.c:1257
EC_POINT_dup
OPENSSL_EXPORT EC_POINT * EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group)
Definition: ec.c:725
BSSL_NAMESPACE_END
#define BSSL_NAMESPACE_END
Definition: base.h:480
ec_key.h
x
int x
Definition: bloaty/third_party/googletest/googlemock/test/gmock-matchers_test.cc:3610
EC_POINT_oct2point
OPENSSL_EXPORT int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point, const uint8_t *buf, size_t len, BN_CTX *ctx)
Definition: oct.c:201
EC_POINT_invert
OPENSSL_EXPORT int EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx)
Definition: ec.c:918
EC_GROUP_get0_generator
const OPENSSL_EXPORT EC_POINT * EC_GROUP_get0_generator(const EC_GROUP *group)
Definition: ec.c:613
EC_GROUP_get_asn1_flag
OPENSSL_EXPORT int EC_GROUP_get_asn1_flag(const EC_GROUP *group)
Definition: ec.c:1235
EC_GROUP_get_curve_GFp
OPENSSL_EXPORT int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *out_p, BIGNUM *out_a, BIGNUM *out_b, BN_CTX *ctx)
Definition: ec.c:639
b
uint64_t b
Definition: abseil-cpp/absl/container/internal/layout_test.cc:53
EC_GROUP_new_curve_GFp
OPENSSL_EXPORT EC_GROUP * EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
Definition: ec.c:349
n
int n
Definition: abseil-cpp/absl/container/btree_test.cc:1080
tests.qps.qps_worker.dest
dest
Definition: qps_worker.py:45
EC_POINT_point2cbb
OPENSSL_EXPORT int EC_POINT_point2cbb(CBB *out, const EC_GROUP *group, const EC_POINT *point, point_conversion_form_t form, BN_CTX *ctx)
Definition: ec_asn1.c:407
EC_POINT_add
OPENSSL_EXPORT int EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
Definition: ec.c:894
nid
int nid
Definition: cipher_extra.c:71
point
Definition: bloaty/third_party/zlib/examples/zran.c:67
EC_curve_nid2nist
const OPENSSL_EXPORT char * EC_curve_nid2nist(int nid)
Definition: ec.c:650
EC_GROUP_method_of
const OPENSSL_EXPORT EC_METHOD * EC_GROUP_method_of(const EC_GROUP *group)
Definition: ec.c:1239
BSSL_NAMESPACE_BEGIN
Definition: trust_token_test.cc:45
EC_GROUP_order_bits
OPENSSL_EXPORT int EC_GROUP_order_bits(const EC_GROUP *group)
Definition: ec.c:629
upload.group
group
Definition: bloaty/third_party/googletest/googlemock/scripts/upload.py:397
EC_POINT_cmp
OPENSSL_EXPORT int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
Definition: ec.c:766
EC_GROUP_set_generator
OPENSSL_EXPORT int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor)
Definition: ec.c:390
POINT_CONVERSION_COMPRESSED
@ POINT_CONVERSION_COMPRESSED
Definition: ec.h:87
point_conversion_form_t
point_conversion_form_t
Definition: ec.h:83
POINT_CONVERSION_UNCOMPRESSED
@ POINT_CONVERSION_UNCOMPRESSED
Definition: ec.h:91
bignum_st
Definition: bn.h:957
ec_point_st
Definition: third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/internal.h:615
EC_POINT_set_to_infinity
OPENSSL_EXPORT int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point)
Definition: ec.c:740
ec_group_st
Definition: third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/internal.h:573
fix_build_deps.r
r
Definition: fix_build_deps.py:491
EC_POINT_set_compressed_coordinates_GFp
OPENSSL_EXPORT int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, int y_bit, BN_CTX *ctx)
Definition: oct.c:224
EC_POINT_point2oct
OPENSSL_EXPORT size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, point_conversion_form_t form, uint8_t *buf, size_t len, BN_CTX *ctx)
Definition: oct.c:210
OPENSSL_EXPORT
#define OPENSSL_EXPORT
Definition: base.h:222
BORINGSSL_MAKE_DELETER
#define BORINGSSL_MAKE_DELETER(type, deleter)
Definition: base.h:506
EC_POINT_set_affine_coordinates
OPENSSL_EXPORT int EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx)
Definition: ec.c:888
EC_POINT_is_at_infinity
OPENSSL_EXPORT int EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *point)
Definition: ec.c:749
EC_GROUP_free
OPENSSL_EXPORT void EC_GROUP_free(EC_GROUP *group)
Definition: ec.c:553
EC_builtin_curve
Definition: ec.h:369
EC_POINT_set_affine_coordinates_GFp
OPENSSL_EXPORT int EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx)
Definition: ec.c:860
EC_GROUP_get_order
OPENSSL_EXPORT int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx)
Definition: ec.c:622
len
int len
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:46
regress.m
m
Definition: regress/regress.py:25
EC_METHOD_get_field_type
OPENSSL_EXPORT int EC_METHOD_get_field_type(const EC_METHOD *meth)
Definition: ec.c:1246
EC_GROUP_get_cofactor
OPENSSL_EXPORT int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx)
Definition: ec.c:633
EC_POINT_copy
OPENSSL_EXPORT int EC_POINT_copy(EC_POINT *dest, const EC_POINT *src)
Definition: ec.c:713
cbb_st
Definition: bytestring.h:375


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:14