ecerr.h 15 KB

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