25dea231b82fb87cb46b5637765c7934b86576cd
[openssl.git] / crypto / ec / ec_err.c
1 /*
2  * Generated by util/mkerr.pl DO NOT EDIT
3  * Copyright 1995-2016 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_EC_ASN1_GROUP2CURVE), "ec_asn1_group2curve"},
55     {ERR_FUNC(EC_F_EC_ASN1_GROUP2FIELDID), "ec_asn1_group2fieldid"},
56     {ERR_FUNC(EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY),
57      "ec_GF2m_montgomery_point_multiply"},
58     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT),
59      "ec_GF2m_simple_group_check_discriminant"},
60     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE),
61      "ec_GF2m_simple_group_set_curve"},
62     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_OCT2POINT), "ec_GF2m_simple_oct2point"},
63     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_POINT2OCT), "ec_GF2m_simple_point2oct"},
64     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES),
65      "ec_GF2m_simple_point_get_affine_coordinates"},
66     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES),
67      "ec_GF2m_simple_point_set_affine_coordinates"},
68     {ERR_FUNC(EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES),
69      "ec_GF2m_simple_set_compressed_coordinates"},
70     {ERR_FUNC(EC_F_EC_GFP_MONT_FIELD_DECODE), "ec_GFp_mont_field_decode"},
71     {ERR_FUNC(EC_F_EC_GFP_MONT_FIELD_ENCODE), "ec_GFp_mont_field_encode"},
72     {ERR_FUNC(EC_F_EC_GFP_MONT_FIELD_MUL), "ec_GFp_mont_field_mul"},
73     {ERR_FUNC(EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE),
74      "ec_GFp_mont_field_set_to_one"},
75     {ERR_FUNC(EC_F_EC_GFP_MONT_FIELD_SQR), "ec_GFp_mont_field_sqr"},
76     {ERR_FUNC(EC_F_EC_GFP_MONT_GROUP_SET_CURVE),
77      "ec_GFp_mont_group_set_curve"},
78     {ERR_FUNC(EC_F_EC_GFP_NISTP224_GROUP_SET_CURVE),
79      "ec_GFp_nistp224_group_set_curve"},
80     {ERR_FUNC(EC_F_EC_GFP_NISTP224_POINTS_MUL), "ec_GFp_nistp224_points_mul"},
81     {ERR_FUNC(EC_F_EC_GFP_NISTP224_POINT_GET_AFFINE_COORDINATES),
82      "ec_GFp_nistp224_point_get_affine_coordinates"},
83     {ERR_FUNC(EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE),
84      "ec_GFp_nistp256_group_set_curve"},
85     {ERR_FUNC(EC_F_EC_GFP_NISTP256_POINTS_MUL), "ec_GFp_nistp256_points_mul"},
86     {ERR_FUNC(EC_F_EC_GFP_NISTP256_POINT_GET_AFFINE_COORDINATES),
87      "ec_GFp_nistp256_point_get_affine_coordinates"},
88     {ERR_FUNC(EC_F_EC_GFP_NISTP521_GROUP_SET_CURVE),
89      "ec_GFp_nistp521_group_set_curve"},
90     {ERR_FUNC(EC_F_EC_GFP_NISTP521_POINTS_MUL), "ec_GFp_nistp521_points_mul"},
91     {ERR_FUNC(EC_F_EC_GFP_NISTP521_POINT_GET_AFFINE_COORDINATES),
92      "ec_GFp_nistp521_point_get_affine_coordinates"},
93     {ERR_FUNC(EC_F_EC_GFP_NIST_FIELD_MUL), "ec_GFp_nist_field_mul"},
94     {ERR_FUNC(EC_F_EC_GFP_NIST_FIELD_SQR), "ec_GFp_nist_field_sqr"},
95     {ERR_FUNC(EC_F_EC_GFP_NIST_GROUP_SET_CURVE),
96      "ec_GFp_nist_group_set_curve"},
97     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT),
98      "ec_GFp_simple_group_check_discriminant"},
99     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE),
100      "ec_GFp_simple_group_set_curve"},
101     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_MAKE_AFFINE), "ec_GFp_simple_make_affine"},
102     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_OCT2POINT), "ec_GFp_simple_oct2point"},
103     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_POINT2OCT), "ec_GFp_simple_point2oct"},
104     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE),
105      "ec_GFp_simple_points_make_affine"},
106     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES),
107      "ec_GFp_simple_point_get_affine_coordinates"},
108     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES),
109      "ec_GFp_simple_point_set_affine_coordinates"},
110     {ERR_FUNC(EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES),
111      "ec_GFp_simple_set_compressed_coordinates"},
112     {ERR_FUNC(EC_F_EC_GROUP_CHECK), "EC_GROUP_check"},
113     {ERR_FUNC(EC_F_EC_GROUP_CHECK_DISCRIMINANT),
114      "EC_GROUP_check_discriminant"},
115     {ERR_FUNC(EC_F_EC_GROUP_COPY), "EC_GROUP_copy"},
116     {ERR_FUNC(EC_F_EC_GROUP_GET_CURVE_GF2M), "EC_GROUP_get_curve_GF2m"},
117     {ERR_FUNC(EC_F_EC_GROUP_GET_CURVE_GFP), "EC_GROUP_get_curve_GFp"},
118     {ERR_FUNC(EC_F_EC_GROUP_GET_DEGREE), "EC_GROUP_get_degree"},
119     {ERR_FUNC(EC_F_EC_GROUP_GET_ECPARAMETERS), "EC_GROUP_get_ecparameters"},
120     {ERR_FUNC(EC_F_EC_GROUP_GET_ECPKPARAMETERS),
121      "EC_GROUP_get_ecpkparameters"},
122     {ERR_FUNC(EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS),
123      "EC_GROUP_get_pentanomial_basis"},
124     {ERR_FUNC(EC_F_EC_GROUP_GET_TRINOMIAL_BASIS),
125      "EC_GROUP_get_trinomial_basis"},
126     {ERR_FUNC(EC_F_EC_GROUP_NEW), "EC_GROUP_new"},
127     {ERR_FUNC(EC_F_EC_GROUP_NEW_BY_CURVE_NAME), "EC_GROUP_new_by_curve_name"},
128     {ERR_FUNC(EC_F_EC_GROUP_NEW_FROM_DATA), "ec_group_new_from_data"},
129     {ERR_FUNC(EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS),
130      "EC_GROUP_new_from_ecparameters"},
131     {ERR_FUNC(EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS),
132      "EC_GROUP_new_from_ecpkparameters"},
133     {ERR_FUNC(EC_F_EC_GROUP_SET_CURVE_GF2M), "EC_GROUP_set_curve_GF2m"},
134     {ERR_FUNC(EC_F_EC_GROUP_SET_CURVE_GFP), "EC_GROUP_set_curve_GFp"},
135     {ERR_FUNC(EC_F_EC_GROUP_SET_GENERATOR), "EC_GROUP_set_generator"},
136     {ERR_FUNC(EC_F_EC_KEY_CHECK_KEY), "EC_KEY_check_key"},
137     {ERR_FUNC(EC_F_EC_KEY_COPY), "EC_KEY_copy"},
138     {ERR_FUNC(EC_F_EC_KEY_GENERATE_KEY), "EC_KEY_generate_key"},
139     {ERR_FUNC(EC_F_EC_KEY_NEW), "EC_KEY_new"},
140     {ERR_FUNC(EC_F_EC_KEY_NEW_METHOD), "EC_KEY_new_method"},
141     {ERR_FUNC(EC_F_EC_KEY_OCT2PRIV), "EC_KEY_oct2priv"},
142     {ERR_FUNC(EC_F_EC_KEY_PRINT), "EC_KEY_print"},
143     {ERR_FUNC(EC_F_EC_KEY_PRINT_FP), "EC_KEY_print_fp"},
144     {ERR_FUNC(EC_F_EC_KEY_PRIV2OCT), "EC_KEY_priv2oct"},
145     {ERR_FUNC(EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES),
146      "EC_KEY_set_public_key_affine_coordinates"},
147     {ERR_FUNC(EC_F_EC_KEY_SIMPLE_CHECK_KEY), "ec_key_simple_check_key"},
148     {ERR_FUNC(EC_F_EC_KEY_SIMPLE_OCT2PRIV), "ec_key_simple_oct2priv"},
149     {ERR_FUNC(EC_F_EC_KEY_SIMPLE_PRIV2OCT), "ec_key_simple_priv2oct"},
150     {ERR_FUNC(EC_F_EC_POINTS_MAKE_AFFINE), "EC_POINTs_make_affine"},
151     {ERR_FUNC(EC_F_EC_POINT_ADD), "EC_POINT_add"},
152     {ERR_FUNC(EC_F_EC_POINT_CMP), "EC_POINT_cmp"},
153     {ERR_FUNC(EC_F_EC_POINT_COPY), "EC_POINT_copy"},
154     {ERR_FUNC(EC_F_EC_POINT_DBL), "EC_POINT_dbl"},
155     {ERR_FUNC(EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M),
156      "EC_POINT_get_affine_coordinates_GF2m"},
157     {ERR_FUNC(EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP),
158      "EC_POINT_get_affine_coordinates_GFp"},
159     {ERR_FUNC(EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP),
160      "EC_POINT_get_Jprojective_coordinates_GFp"},
161     {ERR_FUNC(EC_F_EC_POINT_INVERT), "EC_POINT_invert"},
162     {ERR_FUNC(EC_F_EC_POINT_IS_AT_INFINITY), "EC_POINT_is_at_infinity"},
163     {ERR_FUNC(EC_F_EC_POINT_IS_ON_CURVE), "EC_POINT_is_on_curve"},
164     {ERR_FUNC(EC_F_EC_POINT_MAKE_AFFINE), "EC_POINT_make_affine"},
165     {ERR_FUNC(EC_F_EC_POINT_NEW), "EC_POINT_new"},
166     {ERR_FUNC(EC_F_EC_POINT_OCT2POINT), "EC_POINT_oct2point"},
167     {ERR_FUNC(EC_F_EC_POINT_POINT2OCT), "EC_POINT_point2oct"},
168     {ERR_FUNC(EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M),
169      "EC_POINT_set_affine_coordinates_GF2m"},
170     {ERR_FUNC(EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP),
171      "EC_POINT_set_affine_coordinates_GFp"},
172     {ERR_FUNC(EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M),
173      "EC_POINT_set_compressed_coordinates_GF2m"},
174     {ERR_FUNC(EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP),
175      "EC_POINT_set_compressed_coordinates_GFp"},
176     {ERR_FUNC(EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP),
177      "EC_POINT_set_Jprojective_coordinates_GFp"},
178     {ERR_FUNC(EC_F_EC_POINT_SET_TO_INFINITY), "EC_POINT_set_to_infinity"},
179     {ERR_FUNC(EC_F_EC_PRE_COMP_NEW), "ec_pre_comp_new"},
180     {ERR_FUNC(EC_F_EC_WNAF_MUL), "ec_wNAF_mul"},
181     {ERR_FUNC(EC_F_EC_WNAF_PRECOMPUTE_MULT), "ec_wNAF_precompute_mult"},
182     {ERR_FUNC(EC_F_I2D_ECPARAMETERS), "i2d_ECParameters"},
183     {ERR_FUNC(EC_F_I2D_ECPKPARAMETERS), "i2d_ECPKParameters"},
184     {ERR_FUNC(EC_F_I2D_ECPRIVATEKEY), "i2d_ECPrivateKey"},
185     {ERR_FUNC(EC_F_I2O_ECPUBLICKEY), "i2o_ECPublicKey"},
186     {ERR_FUNC(EC_F_NISTP224_PRE_COMP_NEW), "nistp224_pre_comp_new"},
187     {ERR_FUNC(EC_F_NISTP256_PRE_COMP_NEW), "nistp256_pre_comp_new"},
188     {ERR_FUNC(EC_F_NISTP521_PRE_COMP_NEW), "nistp521_pre_comp_new"},
189     {ERR_FUNC(EC_F_O2I_ECPUBLICKEY), "o2i_ECPublicKey"},
190     {ERR_FUNC(EC_F_OLD_EC_PRIV_DECODE), "old_ec_priv_decode"},
191     {ERR_FUNC(EC_F_OSSL_ECDH_COMPUTE_KEY), "ossl_ecdh_compute_key"},
192     {ERR_FUNC(EC_F_OSSL_ECDSA_SIGN_SIG), "ossl_ecdsa_sign_sig"},
193     {ERR_FUNC(EC_F_OSSL_ECDSA_VERIFY_SIG), "ossl_ecdsa_verify_sig"},
194     {ERR_FUNC(EC_F_PKEY_EC_CTRL), "pkey_ec_ctrl"},
195     {ERR_FUNC(EC_F_PKEY_EC_CTRL_STR), "pkey_ec_ctrl_str"},
196     {ERR_FUNC(EC_F_PKEY_EC_DERIVE), "pkey_ec_derive"},
197     {ERR_FUNC(EC_F_PKEY_EC_KEYGEN), "pkey_ec_keygen"},
198     {ERR_FUNC(EC_F_PKEY_EC_PARAMGEN), "pkey_ec_paramgen"},
199     {ERR_FUNC(EC_F_PKEY_EC_SIGN), "pkey_ec_sign"},
200     {0, NULL}
201 };
202
203 static ERR_STRING_DATA EC_str_reasons[] = {
204     {ERR_REASON(EC_R_ASN1_ERROR), "asn1 error"},
205     {ERR_REASON(EC_R_BAD_SIGNATURE), "bad signature"},
206     {ERR_REASON(EC_R_BIGNUM_OUT_OF_RANGE), "bignum out of range"},
207     {ERR_REASON(EC_R_BUFFER_TOO_SMALL), "buffer too small"},
208     {ERR_REASON(EC_R_COORDINATES_OUT_OF_RANGE), "coordinates out of range"},
209     {ERR_REASON(EC_R_CURVE_DOES_NOT_SUPPORT_ECDH),
210      "curve does not support ecdh"},
211     {ERR_REASON(EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING),
212      "curve does not support signing"},
213     {ERR_REASON(EC_R_D2I_ECPKPARAMETERS_FAILURE),
214      "d2i ecpkparameters failure"},
215     {ERR_REASON(EC_R_DECODE_ERROR), "decode error"},
216     {ERR_REASON(EC_R_DISCRIMINANT_IS_ZERO), "discriminant is zero"},
217     {ERR_REASON(EC_R_EC_GROUP_NEW_BY_NAME_FAILURE),
218      "ec group new by name failure"},
219     {ERR_REASON(EC_R_FIELD_TOO_LARGE), "field too large"},
220     {ERR_REASON(EC_R_GF2M_NOT_SUPPORTED), "gf2m not supported"},
221     {ERR_REASON(EC_R_GROUP2PKPARAMETERS_FAILURE),
222      "group2pkparameters failure"},
223     {ERR_REASON(EC_R_I2D_ECPKPARAMETERS_FAILURE),
224      "i2d ecpkparameters failure"},
225     {ERR_REASON(EC_R_INCOMPATIBLE_OBJECTS), "incompatible objects"},
226     {ERR_REASON(EC_R_INVALID_ARGUMENT), "invalid argument"},
227     {ERR_REASON(EC_R_INVALID_COMPRESSED_POINT), "invalid compressed point"},
228     {ERR_REASON(EC_R_INVALID_COMPRESSION_BIT), "invalid compression bit"},
229     {ERR_REASON(EC_R_INVALID_CURVE), "invalid curve"},
230     {ERR_REASON(EC_R_INVALID_DIGEST), "invalid digest"},
231     {ERR_REASON(EC_R_INVALID_DIGEST_TYPE), "invalid digest type"},
232     {ERR_REASON(EC_R_INVALID_ENCODING), "invalid encoding"},
233     {ERR_REASON(EC_R_INVALID_FIELD), "invalid field"},
234     {ERR_REASON(EC_R_INVALID_FORM), "invalid form"},
235     {ERR_REASON(EC_R_INVALID_GROUP_ORDER), "invalid group order"},
236     {ERR_REASON(EC_R_INVALID_OUTPUT_LENGTH), "invalid output length"},
237     {ERR_REASON(EC_R_INVALID_PENTANOMIAL_BASIS), "invalid pentanomial basis"},
238     {ERR_REASON(EC_R_INVALID_PRIVATE_KEY), "invalid private key"},
239     {ERR_REASON(EC_R_INVALID_TRINOMIAL_BASIS), "invalid trinomial basis"},
240     {ERR_REASON(EC_R_KDF_PARAMETER_ERROR), "kdf parameter error"},
241     {ERR_REASON(EC_R_KEYS_NOT_SET), "keys not set"},
242     {ERR_REASON(EC_R_MISSING_PARAMETERS), "missing parameters"},
243     {ERR_REASON(EC_R_MISSING_PRIVATE_KEY), "missing private key"},
244     {ERR_REASON(EC_R_NEED_NEW_SETUP_VALUES), "need new setup values"},
245     {ERR_REASON(EC_R_NOT_A_NIST_PRIME), "not a NIST prime"},
246     {ERR_REASON(EC_R_NOT_IMPLEMENTED), "not implemented"},
247     {ERR_REASON(EC_R_NOT_INITIALIZED), "not initialized"},
248     {ERR_REASON(EC_R_NO_PARAMETERS_SET), "no parameters set"},
249     {ERR_REASON(EC_R_NO_PRIVATE_VALUE), "no private value"},
250     {ERR_REASON(EC_R_OPERATION_NOT_SUPPORTED), "operation not supported"},
251     {ERR_REASON(EC_R_PASSED_NULL_PARAMETER), "passed null parameter"},
252     {ERR_REASON(EC_R_PEER_KEY_ERROR), "peer key error"},
253     {ERR_REASON(EC_R_PKPARAMETERS2GROUP_FAILURE),
254      "pkparameters2group failure"},
255     {ERR_REASON(EC_R_POINT_ARITHMETIC_FAILURE), "point arithmetic failure"},
256     {ERR_REASON(EC_R_POINT_AT_INFINITY), "point at infinity"},
257     {ERR_REASON(EC_R_POINT_IS_NOT_ON_CURVE), "point is not on curve"},
258     {ERR_REASON(EC_R_RANDOM_NUMBER_GENERATION_FAILED),
259      "random number generation failed"},
260     {ERR_REASON(EC_R_SHARED_INFO_ERROR), "shared info error"},
261     {ERR_REASON(EC_R_SLOT_FULL), "slot full"},
262     {ERR_REASON(EC_R_UNDEFINED_GENERATOR), "undefined generator"},
263     {ERR_REASON(EC_R_UNDEFINED_ORDER), "undefined order"},
264     {ERR_REASON(EC_R_UNKNOWN_GROUP), "unknown group"},
265     {ERR_REASON(EC_R_UNKNOWN_ORDER), "unknown order"},
266     {ERR_REASON(EC_R_UNSUPPORTED_FIELD), "unsupported field"},
267     {ERR_REASON(EC_R_WRONG_CURVE_PARAMETERS), "wrong curve parameters"},
268     {ERR_REASON(EC_R_WRONG_ORDER), "wrong order"},
269     {0, NULL}
270 };
271
272 #endif
273
274 void ERR_load_EC_strings(void)
275 {
276 #ifndef OPENSSL_NO_ERR
277
278     if (ERR_func_error_string(EC_str_functs[0].error) == NULL) {
279         ERR_load_strings(0, EC_str_functs);
280         ERR_load_strings(0, EC_str_reasons);
281     }
282 #endif
283 }