717c92e984591643a6a78b9750a81b3e3b31a787
[openssl.git] / crypto / ec / ec_err.c
1 /*
2  * Generated by util/mkerr.pl DO NOT EDIT
3  * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
4  *
5  * Licensed under the OpenSSL license (the "License").  You may not use
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
11 #include <stdio.h>
12 #include <openssl/err.h>
13 #include <openssl/ec.h>
14
15 /* BEGIN ERROR CODES */
16 #ifndef OPENSSL_NO_ERR
17
18 # define ERR_FUNC(func) ERR_PACK(ERR_LIB_EC,func,0)
19 # define ERR_REASON(reason) ERR_PACK(ERR_LIB_EC,0,reason)
20
21 static ERR_STRING_DATA EC_str_functs[] = {
22     {ERR_FUNC(EC_F_BN_TO_FELEM), "BN_to_felem"},
23     {ERR_FUNC(EC_F_D2I_ECPARAMETERS), "d2i_ECParameters"},
24     {ERR_FUNC(EC_F_D2I_ECPKPARAMETERS), "d2i_ECPKParameters"},
25     {ERR_FUNC(EC_F_D2I_ECPRIVATEKEY), "d2i_ECPrivateKey"},
26     {ERR_FUNC(EC_F_DO_EC_KEY_PRINT), "do_EC_KEY_print"},
27     {ERR_FUNC(EC_F_ECDH_CMS_DECRYPT), "ecdh_cms_decrypt"},
28     {ERR_FUNC(EC_F_ECDH_CMS_SET_SHARED_INFO), "ecdh_cms_set_shared_info"},
29     {ERR_FUNC(EC_F_ECDH_COMPUTE_KEY), "ECDH_compute_key"},
30     {ERR_FUNC(EC_F_ECDH_SIMPLE_COMPUTE_KEY), "ecdh_simple_compute_key"},
31     {ERR_FUNC(EC_F_ECDSA_DO_SIGN_EX), "ECDSA_do_sign_ex"},
32     {ERR_FUNC(EC_F_ECDSA_DO_VERIFY), "ECDSA_do_verify"},
33     {ERR_FUNC(EC_F_ECDSA_SIGN_EX), "ECDSA_sign_ex"},
34     {ERR_FUNC(EC_F_ECDSA_SIGN_SETUP), "ECDSA_sign_setup"},
35     {ERR_FUNC(EC_F_ECDSA_SIG_NEW), "ECDSA_SIG_new"},
36     {ERR_FUNC(EC_F_ECDSA_VERIFY), "ECDSA_verify"},
37     {ERR_FUNC(EC_F_ECKEY_PARAM2TYPE), "eckey_param2type"},
38     {ERR_FUNC(EC_F_ECKEY_PARAM_DECODE), "eckey_param_decode"},
39     {ERR_FUNC(EC_F_ECKEY_PRIV_DECODE), "eckey_priv_decode"},
40     {ERR_FUNC(EC_F_ECKEY_PRIV_ENCODE), "eckey_priv_encode"},
41     {ERR_FUNC(EC_F_ECKEY_PUB_DECODE), "eckey_pub_decode"},
42     {ERR_FUNC(EC_F_ECKEY_PUB_ENCODE), "eckey_pub_encode"},
43     {ERR_FUNC(EC_F_ECKEY_TYPE2PARAM), "eckey_type2param"},
44     {ERR_FUNC(EC_F_ECPARAMETERS_PRINT), "ECParameters_print"},
45     {ERR_FUNC(EC_F_ECPARAMETERS_PRINT_FP), "ECParameters_print_fp"},
46     {ERR_FUNC(EC_F_ECPKPARAMETERS_PRINT), "ECPKParameters_print"},
47     {ERR_FUNC(EC_F_ECPKPARAMETERS_PRINT_FP), "ECPKParameters_print_fp"},
48     {ERR_FUNC(EC_F_ECP_NISTZ256_GET_AFFINE), "ecp_nistz256_get_affine"},
49     {ERR_FUNC(EC_F_ECP_NISTZ256_MULT_PRECOMPUTE),
50      "ecp_nistz256_mult_precompute"},
51     {ERR_FUNC(EC_F_ECP_NISTZ256_POINTS_MUL), "ecp_nistz256_points_mul"},
52     {ERR_FUNC(EC_F_ECP_NISTZ256_PRE_COMP_NEW), "ecp_nistz256_pre_comp_new"},
53     {ERR_FUNC(EC_F_ECP_NISTZ256_WINDOWED_MUL), "ecp_nistz256_windowed_mul"},
54     {ERR_FUNC(EC_F_ECX_KEY_OP), "ecx_key_op"},
55     {ERR_FUNC(EC_F_ECX_PRIV_ENCODE), "ecx_priv_encode"},
56     {ERR_FUNC(EC_F_ECX_PUB_ENCODE), "ecx_pub_encode"},
57     {ERR_FUNC(EC_F_EC_ASN1_GROUP2CURVE), "ec_asn1_group2curve"},
58     {ERR_FUNC(EC_F_EC_ASN1_GROUP2FIELDID), "ec_asn1_group2fieldid"},
59     {ERR_FUNC(EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY),
60      "ec_GF2m_montgomery_point_multiply"},
61     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT),
62      "ec_GF2m_simple_group_check_discriminant"},
63     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE),
64      "ec_GF2m_simple_group_set_curve"},
65     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_OCT2POINT), "ec_GF2m_simple_oct2point"},
66     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_POINT2OCT), "ec_GF2m_simple_point2oct"},
67     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES),
68      "ec_GF2m_simple_point_get_affine_coordinates"},
69     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES),
70      "ec_GF2m_simple_point_set_affine_coordinates"},
71     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES),
72      "ec_GF2m_simple_set_compressed_coordinates"},
73     {ERR_FUNC(EC_F_EC_GFP_MONT_FIELD_DECODE), "ec_GFp_mont_field_decode"},
74     {ERR_FUNC(EC_F_EC_GFP_MONT_FIELD_ENCODE), "ec_GFp_mont_field_encode"},
75     {ERR_FUNC(EC_F_EC_GFP_MONT_FIELD_MUL), "ec_GFp_mont_field_mul"},
76     {ERR_FUNC(EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE),
77      "ec_GFp_mont_field_set_to_one"},
78     {ERR_FUNC(EC_F_EC_GFP_MONT_FIELD_SQR), "ec_GFp_mont_field_sqr"},
79     {ERR_FUNC(EC_F_EC_GFP_MONT_GROUP_SET_CURVE),
80      "ec_GFp_mont_group_set_curve"},
81     {ERR_FUNC(EC_F_EC_GFP_NISTP224_GROUP_SET_CURVE),
82      "ec_GFp_nistp224_group_set_curve"},
83     {ERR_FUNC(EC_F_EC_GFP_NISTP224_POINTS_MUL), "ec_GFp_nistp224_points_mul"},
84     {ERR_FUNC(EC_F_EC_GFP_NISTP224_POINT_GET_AFFINE_COORDINATES),
85      "ec_GFp_nistp224_point_get_affine_coordinates"},
86     {ERR_FUNC(EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE),
87      "ec_GFp_nistp256_group_set_curve"},
88     {ERR_FUNC(EC_F_EC_GFP_NISTP256_POINTS_MUL), "ec_GFp_nistp256_points_mul"},
89     {ERR_FUNC(EC_F_EC_GFP_NISTP256_POINT_GET_AFFINE_COORDINATES),
90      "ec_GFp_nistp256_point_get_affine_coordinates"},
91     {ERR_FUNC(EC_F_EC_GFP_NISTP521_GROUP_SET_CURVE),
92      "ec_GFp_nistp521_group_set_curve"},
93     {ERR_FUNC(EC_F_EC_GFP_NISTP521_POINTS_MUL), "ec_GFp_nistp521_points_mul"},
94     {ERR_FUNC(EC_F_EC_GFP_NISTP521_POINT_GET_AFFINE_COORDINATES),
95      "ec_GFp_nistp521_point_get_affine_coordinates"},
96     {ERR_FUNC(EC_F_EC_GFP_NIST_FIELD_MUL), "ec_GFp_nist_field_mul"},
97     {ERR_FUNC(EC_F_EC_GFP_NIST_FIELD_SQR), "ec_GFp_nist_field_sqr"},
98     {ERR_FUNC(EC_F_EC_GFP_NIST_GROUP_SET_CURVE),
99      "ec_GFp_nist_group_set_curve"},
100     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_BLIND_COORDINATES),
101      "ec_GFp_simple_blind_coordinates"},
102     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT),
103      "ec_GFp_simple_group_check_discriminant"},
104     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE),
105      "ec_GFp_simple_group_set_curve"},
106     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_MAKE_AFFINE), "ec_GFp_simple_make_affine"},
107     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_OCT2POINT), "ec_GFp_simple_oct2point"},
108     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_POINT2OCT), "ec_GFp_simple_point2oct"},
109     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE),
110      "ec_GFp_simple_points_make_affine"},
111     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES),
112      "ec_GFp_simple_point_get_affine_coordinates"},
113     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES),
114      "ec_GFp_simple_point_set_affine_coordinates"},
115     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES),
116      "ec_GFp_simple_set_compressed_coordinates"},
117     {ERR_FUNC(EC_F_EC_GROUP_CHECK), "EC_GROUP_check"},
118     {ERR_FUNC(EC_F_EC_GROUP_CHECK_DISCRIMINANT),
119      "EC_GROUP_check_discriminant"},
120     {ERR_FUNC(EC_F_EC_GROUP_COPY), "EC_GROUP_copy"},
121     {ERR_FUNC(EC_F_EC_GROUP_GET_CURVE_GF2M), "EC_GROUP_get_curve_GF2m"},
122     {ERR_FUNC(EC_F_EC_GROUP_GET_CURVE_GFP), "EC_GROUP_get_curve_GFp"},
123     {ERR_FUNC(EC_F_EC_GROUP_GET_DEGREE), "EC_GROUP_get_degree"},
124     {ERR_FUNC(EC_F_EC_GROUP_GET_ECPARAMETERS), "EC_GROUP_get_ecparameters"},
125     {ERR_FUNC(EC_F_EC_GROUP_GET_ECPKPARAMETERS),
126      "EC_GROUP_get_ecpkparameters"},
127     {ERR_FUNC(EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS),
128      "EC_GROUP_get_pentanomial_basis"},
129     {ERR_FUNC(EC_F_EC_GROUP_GET_TRINOMIAL_BASIS),
130      "EC_GROUP_get_trinomial_basis"},
131     {ERR_FUNC(EC_F_EC_GROUP_NEW), "EC_GROUP_new"},
132     {ERR_FUNC(EC_F_EC_GROUP_NEW_BY_CURVE_NAME), "EC_GROUP_new_by_curve_name"},
133     {ERR_FUNC(EC_F_EC_GROUP_NEW_FROM_DATA), "ec_group_new_from_data"},
134     {ERR_FUNC(EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS),
135      "EC_GROUP_new_from_ecparameters"},
136     {ERR_FUNC(EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS),
137      "EC_GROUP_new_from_ecpkparameters"},
138     {ERR_FUNC(EC_F_EC_GROUP_SET_CURVE_GF2M), "EC_GROUP_set_curve_GF2m"},
139     {ERR_FUNC(EC_F_EC_GROUP_SET_CURVE_GFP), "EC_GROUP_set_curve_GFp"},
140     {ERR_FUNC(EC_F_EC_GROUP_SET_GENERATOR), "EC_GROUP_set_generator"},
141     {ERR_FUNC(EC_F_EC_KEY_CHECK_KEY), "EC_KEY_check_key"},
142     {ERR_FUNC(EC_F_EC_KEY_COPY), "EC_KEY_copy"},
143     {ERR_FUNC(EC_F_EC_KEY_GENERATE_KEY), "EC_KEY_generate_key"},
144     {ERR_FUNC(EC_F_EC_KEY_NEW), "EC_KEY_new"},
145     {ERR_FUNC(EC_F_EC_KEY_NEW_METHOD), "EC_KEY_new_method"},
146     {ERR_FUNC(EC_F_EC_KEY_OCT2PRIV), "EC_KEY_oct2priv"},
147     {ERR_FUNC(EC_F_EC_KEY_PRINT), "EC_KEY_print"},
148     {ERR_FUNC(EC_F_EC_KEY_PRINT_FP), "EC_KEY_print_fp"},
149     {ERR_FUNC(EC_F_EC_KEY_PRIV2OCT), "EC_KEY_priv2oct"},
150     {ERR_FUNC(EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES),
151      "EC_KEY_set_public_key_affine_coordinates"},
152     {ERR_FUNC(EC_F_EC_KEY_SIMPLE_CHECK_KEY), "ec_key_simple_check_key"},
153     {ERR_FUNC(EC_F_EC_KEY_SIMPLE_OCT2PRIV), "ec_key_simple_oct2priv"},
154     {ERR_FUNC(EC_F_EC_KEY_SIMPLE_PRIV2OCT), "ec_key_simple_priv2oct"},
155     {ERR_FUNC(EC_F_EC_POINTS_MAKE_AFFINE), "EC_POINTs_make_affine"},
156     {ERR_FUNC(EC_F_EC_POINT_ADD), "EC_POINT_add"},
157     {ERR_FUNC(EC_F_EC_POINT_CMP), "EC_POINT_cmp"},
158     {ERR_FUNC(EC_F_EC_POINT_COPY), "EC_POINT_copy"},
159     {ERR_FUNC(EC_F_EC_POINT_DBL), "EC_POINT_dbl"},
160     {ERR_FUNC(EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M),
161      "EC_POINT_get_affine_coordinates_GF2m"},
162     {ERR_FUNC(EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP),
163      "EC_POINT_get_affine_coordinates_GFp"},
164     {ERR_FUNC(EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP),
165      "EC_POINT_get_Jprojective_coordinates_GFp"},
166     {ERR_FUNC(EC_F_EC_POINT_INVERT), "EC_POINT_invert"},
167     {ERR_FUNC(EC_F_EC_POINT_IS_AT_INFINITY), "EC_POINT_is_at_infinity"},
168     {ERR_FUNC(EC_F_EC_POINT_IS_ON_CURVE), "EC_POINT_is_on_curve"},
169     {ERR_FUNC(EC_F_EC_POINT_MAKE_AFFINE), "EC_POINT_make_affine"},
170     {ERR_FUNC(EC_F_EC_POINT_NEW), "EC_POINT_new"},
171     {ERR_FUNC(EC_F_EC_POINT_OCT2POINT), "EC_POINT_oct2point"},
172     {ERR_FUNC(EC_F_EC_POINT_POINT2OCT), "EC_POINT_point2oct"},
173     {ERR_FUNC(EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M),
174      "EC_POINT_set_affine_coordinates_GF2m"},
175     {ERR_FUNC(EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP),
176      "EC_POINT_set_affine_coordinates_GFp"},
177     {ERR_FUNC(EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M),
178      "EC_POINT_set_compressed_coordinates_GF2m"},
179     {ERR_FUNC(EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP),
180      "EC_POINT_set_compressed_coordinates_GFp"},
181     {ERR_FUNC(EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP),
182      "EC_POINT_set_Jprojective_coordinates_GFp"},
183     {ERR_FUNC(EC_F_EC_POINT_SET_TO_INFINITY), "EC_POINT_set_to_infinity"},
184     {ERR_FUNC(EC_F_EC_PRE_COMP_NEW), "ec_pre_comp_new"},
185     {ERR_FUNC(EC_F_EC_WNAF_MUL), "ec_wNAF_mul"},
186     {ERR_FUNC(EC_F_EC_WNAF_PRECOMPUTE_MULT), "ec_wNAF_precompute_mult"},
187     {ERR_FUNC(EC_F_I2D_ECPARAMETERS), "i2d_ECParameters"},
188     {ERR_FUNC(EC_F_I2D_ECPKPARAMETERS), "i2d_ECPKParameters"},
189     {ERR_FUNC(EC_F_I2D_ECPRIVATEKEY), "i2d_ECPrivateKey"},
190     {ERR_FUNC(EC_F_I2O_ECPUBLICKEY), "i2o_ECPublicKey"},
191     {ERR_FUNC(EC_F_NISTP224_PRE_COMP_NEW), "nistp224_pre_comp_new"},
192     {ERR_FUNC(EC_F_NISTP256_PRE_COMP_NEW), "nistp256_pre_comp_new"},
193     {ERR_FUNC(EC_F_NISTP521_PRE_COMP_NEW), "nistp521_pre_comp_new"},
194     {ERR_FUNC(EC_F_O2I_ECPUBLICKEY), "o2i_ECPublicKey"},
195     {ERR_FUNC(EC_F_OLD_EC_PRIV_DECODE), "old_ec_priv_decode"},
196     {ERR_FUNC(EC_F_OSSL_ECDH_COMPUTE_KEY), "ossl_ecdh_compute_key"},
197     {ERR_FUNC(EC_F_OSSL_ECDSA_SIGN_SIG), "ossl_ecdsa_sign_sig"},
198     {ERR_FUNC(EC_F_OSSL_ECDSA_VERIFY_SIG), "ossl_ecdsa_verify_sig"},
199     {ERR_FUNC(EC_F_PKEY_ECX_DERIVE), "pkey_ecx_derive"},
200     {ERR_FUNC(EC_F_PKEY_EC_CTRL), "pkey_ec_ctrl"},
201     {ERR_FUNC(EC_F_PKEY_EC_CTRL_STR), "pkey_ec_ctrl_str"},
202     {ERR_FUNC(EC_F_PKEY_EC_DERIVE), "pkey_ec_derive"},
203     {ERR_FUNC(EC_F_PKEY_EC_KEYGEN), "pkey_ec_keygen"},
204     {ERR_FUNC(EC_F_PKEY_EC_PARAMGEN), "pkey_ec_paramgen"},
205     {ERR_FUNC(EC_F_PKEY_EC_SIGN), "pkey_ec_sign"},
206     {0, NULL}
207 };
208
209 static ERR_STRING_DATA EC_str_reasons[] = {
210     {ERR_REASON(EC_R_ASN1_ERROR), "asn1 error"},
211     {ERR_REASON(EC_R_BAD_SIGNATURE), "bad signature"},
212     {ERR_REASON(EC_R_BIGNUM_OUT_OF_RANGE), "bignum out of range"},
213     {ERR_REASON(EC_R_BUFFER_TOO_SMALL), "buffer too small"},
214     {ERR_REASON(EC_R_COORDINATES_OUT_OF_RANGE), "coordinates out of range"},
215     {ERR_REASON(EC_R_CURVE_DOES_NOT_SUPPORT_ECDH),
216      "curve does not support ecdh"},
217     {ERR_REASON(EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING),
218      "curve does not support signing"},
219     {ERR_REASON(EC_R_D2I_ECPKPARAMETERS_FAILURE),
220      "d2i ecpkparameters failure"},
221     {ERR_REASON(EC_R_DECODE_ERROR), "decode error"},
222     {ERR_REASON(EC_R_DISCRIMINANT_IS_ZERO), "discriminant is zero"},
223     {ERR_REASON(EC_R_EC_GROUP_NEW_BY_NAME_FAILURE),
224      "ec group new by name failure"},
225     {ERR_REASON(EC_R_FIELD_TOO_LARGE), "field too large"},
226     {ERR_REASON(EC_R_GF2M_NOT_SUPPORTED), "gf2m not supported"},
227     {ERR_REASON(EC_R_GROUP2PKPARAMETERS_FAILURE),
228      "group2pkparameters failure"},
229     {ERR_REASON(EC_R_I2D_ECPKPARAMETERS_FAILURE),
230      "i2d ecpkparameters failure"},
231     {ERR_REASON(EC_R_INCOMPATIBLE_OBJECTS), "incompatible objects"},
232     {ERR_REASON(EC_R_INVALID_ARGUMENT), "invalid argument"},
233     {ERR_REASON(EC_R_INVALID_COMPRESSED_POINT), "invalid compressed point"},
234     {ERR_REASON(EC_R_INVALID_COMPRESSION_BIT), "invalid compression bit"},
235     {ERR_REASON(EC_R_INVALID_CURVE), "invalid curve"},
236     {ERR_REASON(EC_R_INVALID_DIGEST), "invalid digest"},
237     {ERR_REASON(EC_R_INVALID_DIGEST_TYPE), "invalid digest type"},
238     {ERR_REASON(EC_R_INVALID_ENCODING), "invalid encoding"},
239     {ERR_REASON(EC_R_INVALID_FIELD), "invalid field"},
240     {ERR_REASON(EC_R_INVALID_FORM), "invalid form"},
241     {ERR_REASON(EC_R_INVALID_GROUP_ORDER), "invalid group order"},
242     {ERR_REASON(EC_R_INVALID_KEY), "invalid key"},
243     {ERR_REASON(EC_R_INVALID_OUTPUT_LENGTH), "invalid output length"},
244     {ERR_REASON(EC_R_INVALID_PEER_KEY), "invalid peer key"},
245     {ERR_REASON(EC_R_INVALID_PENTANOMIAL_BASIS), "invalid pentanomial basis"},
246     {ERR_REASON(EC_R_INVALID_PRIVATE_KEY), "invalid private key"},
247     {ERR_REASON(EC_R_INVALID_TRINOMIAL_BASIS), "invalid trinomial basis"},
248     {ERR_REASON(EC_R_KDF_PARAMETER_ERROR), "kdf parameter error"},
249     {ERR_REASON(EC_R_KEYS_NOT_SET), "keys not set"},
250     {ERR_REASON(EC_R_MISSING_PARAMETERS), "missing parameters"},
251     {ERR_REASON(EC_R_MISSING_PRIVATE_KEY), "missing private key"},
252     {ERR_REASON(EC_R_NEED_NEW_SETUP_VALUES), "need new setup values"},
253     {ERR_REASON(EC_R_NOT_A_NIST_PRIME), "not a NIST prime"},
254     {ERR_REASON(EC_R_NOT_IMPLEMENTED), "not implemented"},
255     {ERR_REASON(EC_R_NOT_INITIALIZED), "not initialized"},
256     {ERR_REASON(EC_R_NO_PARAMETERS_SET), "no parameters set"},
257     {ERR_REASON(EC_R_NO_PRIVATE_VALUE), "no private value"},
258     {ERR_REASON(EC_R_OPERATION_NOT_SUPPORTED), "operation not supported"},
259     {ERR_REASON(EC_R_PASSED_NULL_PARAMETER), "passed null parameter"},
260     {ERR_REASON(EC_R_PEER_KEY_ERROR), "peer key error"},
261     {ERR_REASON(EC_R_PKPARAMETERS2GROUP_FAILURE),
262      "pkparameters2group failure"},
263     {ERR_REASON(EC_R_POINT_ARITHMETIC_FAILURE), "point arithmetic failure"},
264     {ERR_REASON(EC_R_POINT_AT_INFINITY), "point at infinity"},
265     {ERR_REASON(EC_R_POINT_IS_NOT_ON_CURVE), "point is not on curve"},
266     {ERR_REASON(EC_R_RANDOM_NUMBER_GENERATION_FAILED),
267      "random number generation failed"},
268     {ERR_REASON(EC_R_SHARED_INFO_ERROR), "shared info error"},
269     {ERR_REASON(EC_R_SLOT_FULL), "slot full"},
270     {ERR_REASON(EC_R_UNDEFINED_GENERATOR), "undefined generator"},
271     {ERR_REASON(EC_R_UNDEFINED_ORDER), "undefined order"},
272     {ERR_REASON(EC_R_UNKNOWN_GROUP), "unknown group"},
273     {ERR_REASON(EC_R_UNKNOWN_ORDER), "unknown order"},
274     {ERR_REASON(EC_R_UNSUPPORTED_FIELD), "unsupported field"},
275     {ERR_REASON(EC_R_WRONG_CURVE_PARAMETERS), "wrong curve parameters"},
276     {ERR_REASON(EC_R_WRONG_ORDER), "wrong order"},
277     {0, NULL}
278 };
279
280 #endif
281
282 int ERR_load_EC_strings(void)
283 {
284 #ifndef OPENSSL_NO_ERR
285
286     if (ERR_func_error_string(EC_str_functs[0].error) == NULL) {
287         ERR_load_strings(0, EC_str_functs);
288         ERR_load_strings(0, EC_str_reasons);
289     }
290 #endif
291     return 1;
292 }