]>
Commit | Line | Data |
---|---|---|
52df25cf RS |
1 | /* |
2 | * Generated by util/mkerr.pl DO NOT EDIT | |
d8171446 | 3 | * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. |
52df25cf | 4 | * |
48f4ad77 | 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
52df25cf RS |
6 | * this file except in compliance with the License. You can obtain a copy |
7 | * in the file LICENSE in the source distribution or at | |
8 | * https://www.openssl.org/source/license.html | |
9 | */ | |
10 | ||
ae4186b0 DMSP |
11 | #ifndef OPENSSL_ECERR_H |
12 | # define OPENSSL_ECERR_H | |
d86167ec DMSP |
13 | # pragma once |
14 | ||
cbfa5b03 RS |
15 | # include <openssl/opensslconf.h> |
16 | # include <openssl/symhacks.h> | |
17 | ||
2a6a5607 | 18 | |
048ebccb RL |
19 | # include <openssl/opensslconf.h> |
20 | ||
21 | # ifndef OPENSSL_NO_EC | |
22 | ||
23 | # ifdef __cplusplus | |
a699b8e4 | 24 | extern "C" |
048ebccb | 25 | # endif |
52df25cf | 26 | int ERR_load_EC_strings(void); |
52df25cf RS |
27 | |
28 | /* | |
29 | * EC function codes. | |
30 | */ | |
936c2b9e | 31 | # ifndef OPENSSL_NO_DEPRECATED_3_0 |
cbfa5b03 RS |
32 | # define EC_F_BN_TO_FELEM 0 |
33 | # define EC_F_D2I_ECPARAMETERS 0 | |
34 | # define EC_F_D2I_ECPKPARAMETERS 0 | |
35 | # define EC_F_D2I_ECPRIVATEKEY 0 | |
36 | # define EC_F_DO_EC_KEY_PRINT 0 | |
37 | # define EC_F_ECDH_CMS_DECRYPT 0 | |
38 | # define EC_F_ECDH_CMS_SET_SHARED_INFO 0 | |
39 | # define EC_F_ECDH_COMPUTE_KEY 0 | |
40 | # define EC_F_ECDH_SIMPLE_COMPUTE_KEY 0 | |
41 | # define EC_F_ECDSA_DO_SIGN_EX 0 | |
42 | # define EC_F_ECDSA_DO_VERIFY 0 | |
59cba5ac P |
43 | # define EC_F_ECDSA_S390X_NISTP_SIGN_SIG 0 |
44 | # define EC_F_ECDSA_S390X_NISTP_VERIFY_SIG 0 | |
cbfa5b03 RS |
45 | # define EC_F_ECDSA_SIGN_EX 0 |
46 | # define EC_F_ECDSA_SIGN_SETUP 0 | |
47 | # define EC_F_ECDSA_SIG_NEW 0 | |
59cba5ac P |
48 | # define EC_F_ECDSA_SIMPLE_SIGN_SETUP 0 |
49 | # define EC_F_ECDSA_SIMPLE_SIGN_SIG 0 | |
50 | # define EC_F_ECDSA_SIMPLE_VERIFY_SIG 0 | |
cbfa5b03 RS |
51 | # define EC_F_ECDSA_VERIFY 0 |
52 | # define EC_F_ECD_ITEM_VERIFY 0 | |
53 | # define EC_F_ECKEY_PARAM2TYPE 0 | |
54 | # define EC_F_ECKEY_PARAM_DECODE 0 | |
55 | # define EC_F_ECKEY_PRIV_DECODE 0 | |
56 | # define EC_F_ECKEY_PRIV_ENCODE 0 | |
57 | # define EC_F_ECKEY_PUB_DECODE 0 | |
58 | # define EC_F_ECKEY_PUB_ENCODE 0 | |
59 | # define EC_F_ECKEY_TYPE2PARAM 0 | |
60 | # define EC_F_ECPARAMETERS_PRINT 0 | |
61 | # define EC_F_ECPARAMETERS_PRINT_FP 0 | |
62 | # define EC_F_ECPKPARAMETERS_PRINT 0 | |
63 | # define EC_F_ECPKPARAMETERS_PRINT_FP 0 | |
64 | # define EC_F_ECP_NISTZ256_GET_AFFINE 0 | |
65 | # define EC_F_ECP_NISTZ256_INV_MOD_ORD 0 | |
66 | # define EC_F_ECP_NISTZ256_MULT_PRECOMPUTE 0 | |
67 | # define EC_F_ECP_NISTZ256_POINTS_MUL 0 | |
68 | # define EC_F_ECP_NISTZ256_PRE_COMP_NEW 0 | |
69 | # define EC_F_ECP_NISTZ256_WINDOWED_MUL 0 | |
70 | # define EC_F_ECX_KEY_OP 0 | |
71 | # define EC_F_ECX_PRIV_ENCODE 0 | |
72 | # define EC_F_ECX_PUB_ENCODE 0 | |
73 | # define EC_F_EC_ASN1_GROUP2CURVE 0 | |
74 | # define EC_F_EC_ASN1_GROUP2FIELDID 0 | |
75 | # define EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY 0 | |
76 | # define EC_F_EC_GF2M_SIMPLE_FIELD_INV 0 | |
77 | # define EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT 0 | |
78 | # define EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE 0 | |
79 | # define EC_F_EC_GF2M_SIMPLE_LADDER_POST 0 | |
80 | # define EC_F_EC_GF2M_SIMPLE_LADDER_PRE 0 | |
81 | # define EC_F_EC_GF2M_SIMPLE_OCT2POINT 0 | |
82 | # define EC_F_EC_GF2M_SIMPLE_POINT2OCT 0 | |
83 | # define EC_F_EC_GF2M_SIMPLE_POINTS_MUL 0 | |
84 | # define EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES 0 | |
85 | # define EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES 0 | |
86 | # define EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES 0 | |
87 | # define EC_F_EC_GFP_MONT_FIELD_DECODE 0 | |
88 | # define EC_F_EC_GFP_MONT_FIELD_ENCODE 0 | |
89 | # define EC_F_EC_GFP_MONT_FIELD_INV 0 | |
90 | # define EC_F_EC_GFP_MONT_FIELD_MUL 0 | |
91 | # define EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE 0 | |
92 | # define EC_F_EC_GFP_MONT_FIELD_SQR 0 | |
93 | # define EC_F_EC_GFP_MONT_GROUP_SET_CURVE 0 | |
94 | # define EC_F_EC_GFP_NISTP224_GROUP_SET_CURVE 0 | |
95 | # define EC_F_EC_GFP_NISTP224_POINTS_MUL 0 | |
96 | # define EC_F_EC_GFP_NISTP224_POINT_GET_AFFINE_COORDINATES 0 | |
97 | # define EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE 0 | |
98 | # define EC_F_EC_GFP_NISTP256_POINTS_MUL 0 | |
99 | # define EC_F_EC_GFP_NISTP256_POINT_GET_AFFINE_COORDINATES 0 | |
100 | # define EC_F_EC_GFP_NISTP521_GROUP_SET_CURVE 0 | |
101 | # define EC_F_EC_GFP_NISTP521_POINTS_MUL 0 | |
102 | # define EC_F_EC_GFP_NISTP521_POINT_GET_AFFINE_COORDINATES 0 | |
103 | # define EC_F_EC_GFP_NIST_FIELD_MUL 0 | |
104 | # define EC_F_EC_GFP_NIST_FIELD_SQR 0 | |
105 | # define EC_F_EC_GFP_NIST_GROUP_SET_CURVE 0 | |
106 | # define EC_F_EC_GFP_SIMPLE_BLIND_COORDINATES 0 | |
107 | # define EC_F_EC_GFP_SIMPLE_FIELD_INV 0 | |
108 | # define EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT 0 | |
109 | # define EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE 0 | |
110 | # define EC_F_EC_GFP_SIMPLE_MAKE_AFFINE 0 | |
111 | # define EC_F_EC_GFP_SIMPLE_OCT2POINT 0 | |
112 | # define EC_F_EC_GFP_SIMPLE_POINT2OCT 0 | |
113 | # define EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE 0 | |
114 | # define EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES 0 | |
115 | # define EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES 0 | |
116 | # define EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES 0 | |
117 | # define EC_F_EC_GROUP_CHECK 0 | |
118 | # define EC_F_EC_GROUP_CHECK_DISCRIMINANT 0 | |
59cba5ac | 119 | # define EC_F_EC_GROUP_CHECK_NAMED_CURVE 0 |
cbfa5b03 RS |
120 | # define EC_F_EC_GROUP_COPY 0 |
121 | # define EC_F_EC_GROUP_GET_CURVE 0 | |
122 | # define EC_F_EC_GROUP_GET_CURVE_GF2M 0 | |
123 | # define EC_F_EC_GROUP_GET_CURVE_GFP 0 | |
124 | # define EC_F_EC_GROUP_GET_DEGREE 0 | |
125 | # define EC_F_EC_GROUP_GET_ECPARAMETERS 0 | |
126 | # define EC_F_EC_GROUP_GET_ECPKPARAMETERS 0 | |
127 | # define EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS 0 | |
128 | # define EC_F_EC_GROUP_GET_TRINOMIAL_BASIS 0 | |
129 | # define EC_F_EC_GROUP_NEW 0 | |
130 | # define EC_F_EC_GROUP_NEW_BY_CURVE_NAME 0 | |
59cba5ac | 131 | # define EC_F_EC_GROUP_NEW_EX 0 |
cbfa5b03 RS |
132 | # define EC_F_EC_GROUP_NEW_FROM_DATA 0 |
133 | # define EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS 0 | |
134 | # define EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS 0 | |
135 | # define EC_F_EC_GROUP_SET_CURVE 0 | |
136 | # define EC_F_EC_GROUP_SET_CURVE_GF2M 0 | |
137 | # define EC_F_EC_GROUP_SET_CURVE_GFP 0 | |
138 | # define EC_F_EC_GROUP_SET_GENERATOR 0 | |
139 | # define EC_F_EC_GROUP_SET_SEED 0 | |
140 | # define EC_F_EC_KEY_CHECK_KEY 0 | |
141 | # define EC_F_EC_KEY_COPY 0 | |
142 | # define EC_F_EC_KEY_GENERATE_KEY 0 | |
143 | # define EC_F_EC_KEY_NEW 0 | |
144 | # define EC_F_EC_KEY_NEW_METHOD 0 | |
59cba5ac | 145 | # define EC_F_EC_KEY_NEW_METHOD_INT 0 |
cbfa5b03 RS |
146 | # define EC_F_EC_KEY_OCT2PRIV 0 |
147 | # define EC_F_EC_KEY_PRINT 0 | |
148 | # define EC_F_EC_KEY_PRINT_FP 0 | |
149 | # define EC_F_EC_KEY_PRIV2BUF 0 | |
150 | # define EC_F_EC_KEY_PRIV2OCT 0 | |
151 | # define EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES 0 | |
152 | # define EC_F_EC_KEY_SIMPLE_CHECK_KEY 0 | |
153 | # define EC_F_EC_KEY_SIMPLE_OCT2PRIV 0 | |
154 | # define EC_F_EC_KEY_SIMPLE_PRIV2OCT 0 | |
155 | # define EC_F_EC_PKEY_CHECK 0 | |
156 | # define EC_F_EC_PKEY_PARAM_CHECK 0 | |
157 | # define EC_F_EC_POINTS_MAKE_AFFINE 0 | |
158 | # define EC_F_EC_POINTS_MUL 0 | |
159 | # define EC_F_EC_POINT_ADD 0 | |
160 | # define EC_F_EC_POINT_BN2POINT 0 | |
161 | # define EC_F_EC_POINT_CMP 0 | |
162 | # define EC_F_EC_POINT_COPY 0 | |
163 | # define EC_F_EC_POINT_DBL 0 | |
164 | # define EC_F_EC_POINT_GET_AFFINE_COORDINATES 0 | |
165 | # define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M 0 | |
166 | # define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP 0 | |
167 | # define EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP 0 | |
168 | # define EC_F_EC_POINT_INVERT 0 | |
169 | # define EC_F_EC_POINT_IS_AT_INFINITY 0 | |
170 | # define EC_F_EC_POINT_IS_ON_CURVE 0 | |
171 | # define EC_F_EC_POINT_MAKE_AFFINE 0 | |
4fcd15c1 | 172 | # define EC_F_EC_POINT_MUL 0 |
cbfa5b03 RS |
173 | # define EC_F_EC_POINT_NEW 0 |
174 | # define EC_F_EC_POINT_OCT2POINT 0 | |
175 | # define EC_F_EC_POINT_POINT2BUF 0 | |
176 | # define EC_F_EC_POINT_POINT2OCT 0 | |
177 | # define EC_F_EC_POINT_SET_AFFINE_COORDINATES 0 | |
178 | # define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M 0 | |
179 | # define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP 0 | |
180 | # define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES 0 | |
181 | # define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M 0 | |
182 | # define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP 0 | |
183 | # define EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP 0 | |
184 | # define EC_F_EC_POINT_SET_TO_INFINITY 0 | |
185 | # define EC_F_EC_PRE_COMP_NEW 0 | |
186 | # define EC_F_EC_SCALAR_MUL_LADDER 0 | |
187 | # define EC_F_EC_WNAF_MUL 0 | |
188 | # define EC_F_EC_WNAF_PRECOMPUTE_MULT 0 | |
189 | # define EC_F_I2D_ECPARAMETERS 0 | |
190 | # define EC_F_I2D_ECPKPARAMETERS 0 | |
191 | # define EC_F_I2D_ECPRIVATEKEY 0 | |
192 | # define EC_F_I2O_ECPUBLICKEY 0 | |
193 | # define EC_F_NISTP224_PRE_COMP_NEW 0 | |
194 | # define EC_F_NISTP256_PRE_COMP_NEW 0 | |
195 | # define EC_F_NISTP521_PRE_COMP_NEW 0 | |
196 | # define EC_F_O2I_ECPUBLICKEY 0 | |
197 | # define EC_F_OLD_EC_PRIV_DECODE 0 | |
198 | # define EC_F_OSSL_ECDH_COMPUTE_KEY 0 | |
59cba5ac | 199 | # define EC_F_OSSL_ECDSA_SIGN_SETUP 0 |
cbfa5b03 RS |
200 | # define EC_F_OSSL_ECDSA_SIGN_SIG 0 |
201 | # define EC_F_OSSL_ECDSA_VERIFY_SIG 0 | |
202 | # define EC_F_PKEY_ECD_CTRL 0 | |
203 | # define EC_F_PKEY_ECD_DIGESTSIGN 0 | |
204 | # define EC_F_PKEY_ECD_DIGESTSIGN25519 0 | |
205 | # define EC_F_PKEY_ECD_DIGESTSIGN448 0 | |
206 | # define EC_F_PKEY_ECX_DERIVE 0 | |
207 | # define EC_F_PKEY_EC_CTRL 0 | |
208 | # define EC_F_PKEY_EC_CTRL_STR 0 | |
209 | # define EC_F_PKEY_EC_DERIVE 0 | |
210 | # define EC_F_PKEY_EC_INIT 0 | |
211 | # define EC_F_PKEY_EC_KDF_DERIVE 0 | |
212 | # define EC_F_PKEY_EC_KEYGEN 0 | |
213 | # define EC_F_PKEY_EC_PARAMGEN 0 | |
214 | # define EC_F_PKEY_EC_SIGN 0 | |
19bd1fa1 PS |
215 | # define EC_F_S390X_PKEY_ECD_DIGESTSIGN25519 0 |
216 | # define EC_F_S390X_PKEY_ECD_DIGESTSIGN448 0 | |
217 | # define EC_F_S390X_PKEY_ECD_KEYGEN25519 0 | |
218 | # define EC_F_S390X_PKEY_ECD_KEYGEN448 0 | |
219 | # define EC_F_S390X_PKEY_ECX_KEYGEN25519 0 | |
220 | # define EC_F_S390X_PKEY_ECX_KEYGEN448 0 | |
cbfa5b03 RS |
221 | # define EC_F_VALIDATE_ECX_DERIVE 0 |
222 | # endif | |
52df25cf RS |
223 | |
224 | /* | |
225 | * EC reason codes. | |
226 | */ | |
048ebccb RL |
227 | # define EC_R_ASN1_ERROR 115 |
228 | # define EC_R_BAD_SIGNATURE 156 | |
229 | # define EC_R_BIGNUM_OUT_OF_RANGE 144 | |
230 | # define EC_R_BUFFER_TOO_SMALL 100 | |
e0033efc | 231 | # define EC_R_CANNOT_INVERT 165 |
048ebccb RL |
232 | # define EC_R_COORDINATES_OUT_OF_RANGE 146 |
233 | # define EC_R_CURVE_DOES_NOT_SUPPORT_ECDH 160 | |
9bf682f6 | 234 | # define EC_R_CURVE_DOES_NOT_SUPPORT_ECDSA 170 |
048ebccb RL |
235 | # define EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING 159 |
236 | # define EC_R_D2I_ECPKPARAMETERS_FAILURE 117 | |
237 | # define EC_R_DECODE_ERROR 142 | |
238 | # define EC_R_DISCRIMINANT_IS_ZERO 118 | |
239 | # define EC_R_EC_GROUP_NEW_BY_NAME_FAILURE 119 | |
d8171446 | 240 | # define EC_R_FAILED_MAKING_PUBLIC_KEY 166 |
048ebccb RL |
241 | # define EC_R_FIELD_TOO_LARGE 143 |
242 | # define EC_R_GF2M_NOT_SUPPORTED 147 | |
243 | # define EC_R_GROUP2PKPARAMETERS_FAILURE 120 | |
244 | # define EC_R_I2D_ECPKPARAMETERS_FAILURE 121 | |
245 | # define EC_R_INCOMPATIBLE_OBJECTS 101 | |
246 | # define EC_R_INVALID_ARGUMENT 112 | |
247 | # define EC_R_INVALID_COMPRESSED_POINT 110 | |
248 | # define EC_R_INVALID_COMPRESSION_BIT 109 | |
249 | # define EC_R_INVALID_CURVE 141 | |
250 | # define EC_R_INVALID_DIGEST 151 | |
251 | # define EC_R_INVALID_DIGEST_TYPE 138 | |
252 | # define EC_R_INVALID_ENCODING 102 | |
253 | # define EC_R_INVALID_FIELD 103 | |
254 | # define EC_R_INVALID_FORM 104 | |
255 | # define EC_R_INVALID_GROUP_ORDER 122 | |
256 | # define EC_R_INVALID_KEY 116 | |
257 | # define EC_R_INVALID_OUTPUT_LENGTH 161 | |
258 | # define EC_R_INVALID_PEER_KEY 133 | |
259 | # define EC_R_INVALID_PENTANOMIAL_BASIS 132 | |
260 | # define EC_R_INVALID_PRIVATE_KEY 123 | |
261 | # define EC_R_INVALID_TRINOMIAL_BASIS 137 | |
262 | # define EC_R_KDF_PARAMETER_ERROR 148 | |
263 | # define EC_R_KEYS_NOT_SET 140 | |
37124360 NT |
264 | # define EC_R_LADDER_POST_FAILURE 136 |
265 | # define EC_R_LADDER_PRE_FAILURE 153 | |
266 | # define EC_R_LADDER_STEP_FAILURE 162 | |
048ebccb RL |
267 | # define EC_R_MISSING_PARAMETERS 124 |
268 | # define EC_R_MISSING_PRIVATE_KEY 125 | |
269 | # define EC_R_NEED_NEW_SETUP_VALUES 157 | |
270 | # define EC_R_NOT_A_NIST_PRIME 135 | |
271 | # define EC_R_NOT_IMPLEMENTED 126 | |
272 | # define EC_R_NOT_INITIALIZED 111 | |
273 | # define EC_R_NO_PARAMETERS_SET 139 | |
274 | # define EC_R_NO_PRIVATE_VALUE 154 | |
275 | # define EC_R_OPERATION_NOT_SUPPORTED 152 | |
276 | # define EC_R_PASSED_NULL_PARAMETER 134 | |
277 | # define EC_R_PEER_KEY_ERROR 149 | |
278 | # define EC_R_PKPARAMETERS2GROUP_FAILURE 127 | |
279 | # define EC_R_POINT_ARITHMETIC_FAILURE 155 | |
280 | # define EC_R_POINT_AT_INFINITY 106 | |
37124360 | 281 | # define EC_R_POINT_COORDINATES_BLIND_FAILURE 163 |
048ebccb RL |
282 | # define EC_R_POINT_IS_NOT_ON_CURVE 107 |
283 | # define EC_R_RANDOM_NUMBER_GENERATION_FAILED 158 | |
284 | # define EC_R_SHARED_INFO_ERROR 150 | |
285 | # define EC_R_SLOT_FULL 108 | |
286 | # define EC_R_UNDEFINED_GENERATOR 113 | |
287 | # define EC_R_UNDEFINED_ORDER 128 | |
01ad66f8 | 288 | # define EC_R_UNKNOWN_COFACTOR 164 |
048ebccb RL |
289 | # define EC_R_UNKNOWN_GROUP 129 |
290 | # define EC_R_UNKNOWN_ORDER 114 | |
291 | # define EC_R_UNSUPPORTED_FIELD 131 | |
292 | # define EC_R_WRONG_CURVE_PARAMETERS 145 | |
293 | # define EC_R_WRONG_ORDER 130 | |
52df25cf | 294 | |
048ebccb | 295 | # endif |
52df25cf | 296 | #endif |