1 | /* |
2 | * Generated by util/mkerr.pl DO NOT EDIT |
3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. |
4 | * |
5 | * Licensed under the Apache License 2.0 (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 | #ifndef OPENSSL_ECERR_H |
12 | # define OPENSSL_ECERR_H |
13 | # pragma once |
14 | |
15 | # include <openssl/opensslconf.h> |
16 | # include <openssl/symhacks.h> |
17 | # include <openssl/cryptoerr_legacy.h> |
18 | |
19 | |
20 | # ifndef OPENSSL_NO_EC |
21 | |
22 | |
23 | /* |
24 | * EC reason codes. |
25 | */ |
26 | # define EC_R_ASN1_ERROR 115 |
27 | # define EC_R_BAD_SIGNATURE 156 |
28 | # define EC_R_BIGNUM_OUT_OF_RANGE 144 |
29 | # define EC_R_BUFFER_TOO_SMALL 100 |
30 | # define EC_R_CANNOT_INVERT 165 |
31 | # define EC_R_COORDINATES_OUT_OF_RANGE 146 |
32 | # define EC_R_CURVE_DOES_NOT_SUPPORT_ECDH 160 |
33 | # define EC_R_CURVE_DOES_NOT_SUPPORT_ECDSA 170 |
34 | # define EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING 159 |
35 | # define EC_R_DECODE_ERROR 142 |
36 | # define EC_R_DISCRIMINANT_IS_ZERO 118 |
37 | # define EC_R_EC_GROUP_NEW_BY_NAME_FAILURE 119 |
38 | # define EC_R_FAILED_MAKING_PUBLIC_KEY 166 |
39 | # define EC_R_FIELD_TOO_LARGE 143 |
40 | # define EC_R_GF2M_NOT_SUPPORTED 147 |
41 | # define EC_R_GROUP2PKPARAMETERS_FAILURE 120 |
42 | # define EC_R_I2D_ECPKPARAMETERS_FAILURE 121 |
43 | # define EC_R_INCOMPATIBLE_OBJECTS 101 |
44 | # define EC_R_INVALID_A 168 |
45 | # define EC_R_INVALID_ARGUMENT 112 |
46 | # define EC_R_INVALID_B 169 |
47 | # define EC_R_INVALID_COFACTOR 171 |
48 | # define EC_R_INVALID_COMPRESSED_POINT 110 |
49 | # define EC_R_INVALID_COMPRESSION_BIT 109 |
50 | # define EC_R_INVALID_CURVE 141 |
51 | # define EC_R_INVALID_DIGEST 151 |
52 | # define EC_R_INVALID_DIGEST_TYPE 138 |
53 | # define EC_R_INVALID_ENCODING 102 |
54 | # define EC_R_INVALID_FIELD 103 |
55 | # define EC_R_INVALID_FORM 104 |
56 | # define EC_R_INVALID_GENERATOR 173 |
57 | # define EC_R_INVALID_GROUP_ORDER 122 |
58 | # define EC_R_INVALID_KEY 116 |
59 | # define EC_R_INVALID_LENGTH 117 |
60 | # define EC_R_INVALID_NAMED_GROUP_CONVERSION 174 |
61 | # define EC_R_INVALID_OUTPUT_LENGTH 161 |
62 | # define EC_R_INVALID_P 172 |
63 | # define EC_R_INVALID_PEER_KEY 133 |
64 | # define EC_R_INVALID_PENTANOMIAL_BASIS 132 |
65 | # define EC_R_INVALID_PRIVATE_KEY 123 |
66 | # define EC_R_INVALID_SEED 175 |
67 | # define EC_R_INVALID_TRINOMIAL_BASIS 137 |
68 | # define EC_R_KDF_PARAMETER_ERROR 148 |
69 | # define EC_R_KEYS_NOT_SET 140 |
70 | # define EC_R_LADDER_POST_FAILURE 136 |
71 | # define EC_R_LADDER_PRE_FAILURE 153 |
72 | # define EC_R_LADDER_STEP_FAILURE 162 |
73 | # define EC_R_MISSING_OID 167 |
74 | # define EC_R_MISSING_PARAMETERS 124 |
75 | # define EC_R_MISSING_PRIVATE_KEY 125 |
76 | # define EC_R_NEED_NEW_SETUP_VALUES 157 |
77 | # define EC_R_NOT_A_NIST_PRIME 135 |
78 | # define EC_R_NOT_IMPLEMENTED 126 |
79 | # define EC_R_NOT_INITIALIZED 111 |
80 | # define EC_R_NO_PARAMETERS_SET 139 |
81 | # define EC_R_NO_PRIVATE_VALUE 154 |
82 | # define EC_R_OPERATION_NOT_SUPPORTED 152 |
83 | # define EC_R_PASSED_NULL_PARAMETER 134 |
84 | # define EC_R_PEER_KEY_ERROR 149 |
85 | # define EC_R_POINT_ARITHMETIC_FAILURE 155 |
86 | # define EC_R_POINT_AT_INFINITY 106 |
87 | # define EC_R_POINT_COORDINATES_BLIND_FAILURE 163 |
88 | # define EC_R_POINT_IS_NOT_ON_CURVE 107 |
89 | # define EC_R_RANDOM_NUMBER_GENERATION_FAILED 158 |
90 | # define EC_R_SHARED_INFO_ERROR 150 |
91 | # define EC_R_SLOT_FULL 108 |
92 | # define EC_R_UNDEFINED_GENERATOR 113 |
93 | # define EC_R_UNDEFINED_ORDER 128 |
94 | # define EC_R_UNKNOWN_COFACTOR 164 |
95 | # define EC_R_UNKNOWN_GROUP 129 |
96 | # define EC_R_UNKNOWN_ORDER 114 |
97 | # define EC_R_UNSUPPORTED_FIELD 131 |
98 | # define EC_R_WRONG_CURVE_PARAMETERS 145 |
99 | # define EC_R_WRONG_ORDER 130 |
100 | |
101 | # endif |
102 | #endif |
103 | |