property: Move global default properties to the library context.
[openssl.git] / include / openssl / evperr.h
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 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_EVPERR_H
12 # define OPENSSL_EVPERR_H
13 # pragma once
14
15 # include <openssl/opensslconf.h>
16 # include <openssl/symhacks.h>
17
18
19 # ifdef  __cplusplus
20 extern "C"
21 # endif
22 int ERR_load_EVP_strings(void);
23
24 /*
25  * EVP function codes.
26  */
27 # ifndef OPENSSL_NO_DEPRECATED_3_0
28 #  define EVP_F_AESNI_INIT_KEY                             0
29 #  define EVP_F_AESNI_XTS_INIT_KEY                         0
30 #  define EVP_F_AES_GCM_CTRL                               0
31 #  define EVP_F_AES_GCM_TLS_CIPHER                         0
32 #  define EVP_F_AES_INIT_KEY                               0
33 #  define EVP_F_AES_OCB_CIPHER                             0
34 #  define EVP_F_AES_T4_INIT_KEY                            0
35 #  define EVP_F_AES_T4_XTS_INIT_KEY                        0
36 #  define EVP_F_AES_WRAP_CIPHER                            0
37 #  define EVP_F_AES_XTS_CIPHER                             0
38 #  define EVP_F_AES_XTS_INIT_KEY                           0
39 #  define EVP_F_ALG_MODULE_INIT                            0
40 #  define EVP_F_ARIA_CCM_INIT_KEY                          0
41 #  define EVP_F_ARIA_GCM_CTRL                              0
42 #  define EVP_F_ARIA_GCM_INIT_KEY                          0
43 #  define EVP_F_ARIA_INIT_KEY                              0
44 #  define EVP_F_B64_NEW                                    0
45 #  define EVP_F_CAMELLIA_INIT_KEY                          0
46 #  define EVP_F_CHACHA20_POLY1305_CTRL                     0
47 #  define EVP_F_CMLL_T4_INIT_KEY                           0
48 #  define EVP_F_DES_EDE3_WRAP_CIPHER                       0
49 #  define EVP_F_DO_SIGVER_INIT                             0
50 #  define EVP_F_ENC_NEW                                    0
51 #  define EVP_F_EVP_CIPHERINIT_EX                          0
52 #  define EVP_F_EVP_CIPHER_ASN1_TO_PARAM                   0
53 #  define EVP_F_EVP_CIPHER_CTX_COPY                        0
54 #  define EVP_F_EVP_CIPHER_CTX_CTRL                        0
55 #  define EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH              0
56 #  define EVP_F_EVP_CIPHER_CTX_SET_PADDING                 0
57 #  define EVP_F_EVP_CIPHER_FROM_DISPATCH                   0
58 #  define EVP_F_EVP_CIPHER_MODE                            0
59 #  define EVP_F_EVP_CIPHER_PARAM_TO_ASN1                   0
60 #  define EVP_F_EVP_DECRYPTFINAL_EX                        0
61 #  define EVP_F_EVP_DECRYPTUPDATE                          0
62 #  define EVP_F_EVP_DIGESTFINALXOF                         0
63 #  define EVP_F_EVP_DIGESTFINAL_EX                         0
64 #  define EVP_F_EVP_DIGESTINIT_EX                          0
65 #  define EVP_F_EVP_DIGESTUPDATE                           0
66 #  define EVP_F_EVP_ENCRYPTDECRYPTUPDATE                   0
67 #  define EVP_F_EVP_ENCRYPTFINAL_EX                        0
68 #  define EVP_F_EVP_ENCRYPTUPDATE                          0
69 #  define EVP_F_EVP_KDF_CTX_DUP                            0
70 #  define EVP_F_EVP_KDF_CTX_NEW                            0
71 #  define EVP_F_EVP_KEYEXCH_FETCH                          0
72 #  define EVP_F_EVP_KEYEXCH_FROM_DISPATCH                  0
73 #  define EVP_F_EVP_MAC_CTRL                               0
74 #  define EVP_F_EVP_MAC_CTRL_STR                           0
75 #  define EVP_F_EVP_MAC_INIT                               0
76 #  define EVP_F_EVP_MD_BLOCK_SIZE                          0
77 #  define EVP_F_EVP_MD_CTX_COPY_EX                         0
78 #  define EVP_F_EVP_MD_SIZE                                0
79 #  define EVP_F_EVP_OPENINIT                               0
80 #  define EVP_F_EVP_PBE_ALG_ADD                            0
81 #  define EVP_F_EVP_PBE_ALG_ADD_TYPE                       0
82 #  define EVP_F_EVP_PBE_CIPHERINIT                         0
83 #  define EVP_F_EVP_PBE_SCRYPT                             0
84 #  define EVP_F_EVP_PKCS82PKEY                             0
85 #  define EVP_F_EVP_PKEY2PKCS8                             0
86 #  define EVP_F_EVP_PKEY_ASN1_ADD0                         0
87 #  define EVP_F_EVP_PKEY_CHECK                             0
88 #  define EVP_F_EVP_PKEY_COPY_PARAMETERS                   0
89 #  define EVP_F_EVP_PKEY_CTX_CTRL                          0
90 #  define EVP_F_EVP_PKEY_CTX_CTRL_STR                      0
91 #  define EVP_F_EVP_PKEY_CTX_DUP                           0
92 #  define EVP_F_EVP_PKEY_CTX_MD                            0
93 #  define EVP_F_EVP_PKEY_DECRYPT                           0
94 #  define EVP_F_EVP_PKEY_DECRYPT_INIT                      0
95 #  define EVP_F_EVP_PKEY_DECRYPT_OLD                       0
96 #  define EVP_F_EVP_PKEY_DERIVE                            0
97 #  define EVP_F_EVP_PKEY_DERIVE_INIT                       0
98 #  define EVP_F_EVP_PKEY_DERIVE_INIT_EX                    0
99 #  define EVP_F_EVP_PKEY_DERIVE_SET_PEER                   0
100 #  define EVP_F_EVP_PKEY_ENCRYPT                           0
101 #  define EVP_F_EVP_PKEY_ENCRYPT_INIT                      0
102 #  define EVP_F_EVP_PKEY_ENCRYPT_OLD                       0
103 #  define EVP_F_EVP_PKEY_GET0_DH                           0
104 #  define EVP_F_EVP_PKEY_GET0_DSA                          0
105 #  define EVP_F_EVP_PKEY_GET0_EC_KEY                       0
106 #  define EVP_F_EVP_PKEY_GET0_HMAC                         0
107 #  define EVP_F_EVP_PKEY_GET0_POLY1305                     0
108 #  define EVP_F_EVP_PKEY_GET0_RSA                          0
109 #  define EVP_F_EVP_PKEY_GET0_SIPHASH                      0
110 #  define EVP_F_EVP_PKEY_GET_RAW_PRIVATE_KEY               0
111 #  define EVP_F_EVP_PKEY_GET_RAW_PUBLIC_KEY                0
112 #  define EVP_F_EVP_PKEY_KEYGEN                            0
113 #  define EVP_F_EVP_PKEY_KEYGEN_INIT                       0
114 #  define EVP_F_EVP_PKEY_METH_ADD0                         0
115 #  define EVP_F_EVP_PKEY_METH_NEW                          0
116 #  define EVP_F_EVP_PKEY_NEW                               0
117 #  define EVP_F_EVP_PKEY_NEW_CMAC_KEY                      0
118 #  define EVP_F_EVP_PKEY_NEW_RAW_PRIVATE_KEY               0
119 #  define EVP_F_EVP_PKEY_NEW_RAW_PUBLIC_KEY                0
120 #  define EVP_F_EVP_PKEY_PARAMGEN                          0
121 #  define EVP_F_EVP_PKEY_PARAMGEN_INIT                     0
122 #  define EVP_F_EVP_PKEY_PARAM_CHECK                       0
123 #  define EVP_F_EVP_PKEY_PUBLIC_CHECK                      0
124 #  define EVP_F_EVP_PKEY_SET1_ENGINE                       0
125 #  define EVP_F_EVP_PKEY_SET_ALIAS_TYPE                    0
126 #  define EVP_F_EVP_PKEY_SIGN                              0
127 #  define EVP_F_EVP_PKEY_SIGN_INIT                         0
128 #  define EVP_F_EVP_PKEY_VERIFY                            0
129 #  define EVP_F_EVP_PKEY_VERIFY_INIT                       0
130 #  define EVP_F_EVP_PKEY_VERIFY_RECOVER                    0
131 #  define EVP_F_EVP_PKEY_VERIFY_RECOVER_INIT               0
132 #  define EVP_F_EVP_SET_DEFAULT_PROPERTIES                 0
133 #  define EVP_F_EVP_SIGNFINAL                              0
134 #  define EVP_F_EVP_VERIFYFINAL                            0
135 #  define EVP_F_GMAC_CTRL                                  0
136 #  define EVP_F_INT_CTX_NEW                                0
137 #  define EVP_F_KMAC_CTRL                                  0
138 #  define EVP_F_KMAC_INIT                                  0
139 #  define EVP_F_OK_NEW                                     0
140 #  define EVP_F_PKCS5_PBE_KEYIVGEN                         0
141 #  define EVP_F_PKCS5_V2_PBE_KEYIVGEN                      0
142 #  define EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN                   0
143 #  define EVP_F_PKCS5_V2_SCRYPT_KEYIVGEN                   0
144 #  define EVP_F_PKEY_KDF_CTRL                              0
145 #  define EVP_F_PKEY_MAC_COPY                              0
146 #  define EVP_F_PKEY_MAC_INIT                              0
147 #  define EVP_F_PKEY_SET_TYPE                              0
148 #  define EVP_F_POLY1305_CTRL                              0
149 #  define EVP_F_RC2_MAGIC_TO_METH                          0
150 #  define EVP_F_RC5_CTRL                                   0
151 #  define EVP_F_R_32_12_16_INIT_KEY                        0
152 #  define EVP_F_S390X_AES_GCM_CTRL                         0
153 #  define EVP_F_S390X_AES_GCM_TLS_CIPHER                   0
154 #  define EVP_F_SCRYPT_ALG                                 0
155 #  define EVP_F_UPDATE                                     0
156 # endif
157
158 /*
159  * EVP reason codes.
160  */
161 # define EVP_R_AES_KEY_SETUP_FAILED                       143
162 # define EVP_R_ARIA_KEY_SETUP_FAILED                      176
163 # define EVP_R_BAD_ALGORITHM_NAME                         200
164 # define EVP_R_BAD_DECRYPT                                100
165 # define EVP_R_BAD_KEY_LENGTH                             195
166 # define EVP_R_BUFFER_TOO_SMALL                           155
167 # define EVP_R_CAMELLIA_KEY_SETUP_FAILED                  157
168 # define EVP_R_CANNOT_GET_PARAMETERS                      197
169 # define EVP_R_CANNOT_SET_PARAMETERS                      198
170 # define EVP_R_CIPHER_NOT_GCM_MODE                        184
171 # define EVP_R_CIPHER_PARAMETER_ERROR                     122
172 # define EVP_R_COMMAND_NOT_SUPPORTED                      147
173 # define EVP_R_CONFLICTING_ALGORITHM_NAME                 201
174 # define EVP_R_COPY_ERROR                                 173
175 # define EVP_R_CTRL_NOT_IMPLEMENTED                       132
176 # define EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED             133
177 # define EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH          138
178 # define EVP_R_DECODE_ERROR                               114
179 # define EVP_R_DEFAULT_QUERY_PARSE_ERROR                  210
180 # define EVP_R_DIFFERENT_KEY_TYPES                        101
181 # define EVP_R_DIFFERENT_PARAMETERS                       153
182 # define EVP_R_ERROR_LOADING_SECTION                      165
183 # define EVP_R_ERROR_SETTING_FIPS_MODE                    166
184 # define EVP_R_EXPECTING_AN_HMAC_KEY                      174
185 # define EVP_R_EXPECTING_AN_RSA_KEY                       127
186 # define EVP_R_EXPECTING_A_DH_KEY                         128
187 # define EVP_R_EXPECTING_A_DSA_KEY                        129
188 # define EVP_R_EXPECTING_A_EC_KEY                         142
189 # define EVP_R_EXPECTING_A_POLY1305_KEY                   164
190 # define EVP_R_EXPECTING_A_SIPHASH_KEY                    175
191 # define EVP_R_FETCH_FAILED                               202
192 # define EVP_R_FINAL_ERROR                                188
193 # define EVP_R_FIPS_MODE_NOT_SUPPORTED                    167
194 # define EVP_R_GET_RAW_KEY_FAILED                         182
195 # define EVP_R_ILLEGAL_SCRYPT_PARAMETERS                  171
196 # define EVP_R_INACCESSIBLE_DOMAIN_PARAMETERS             204
197 # define EVP_R_INACCESSIBLE_KEY                           203
198 # define EVP_R_INITIALIZATION_ERROR                       134
199 # define EVP_R_INPUT_NOT_INITIALIZED                      111
200 # define EVP_R_INVALID_CUSTOM_LENGTH                      185
201 # define EVP_R_INVALID_DIGEST                             152
202 # define EVP_R_INVALID_FIPS_MODE                          168
203 # define EVP_R_INVALID_IV_LENGTH                          194
204 # define EVP_R_INVALID_KEY                                163
205 # define EVP_R_INVALID_KEY_LENGTH                         130
206 # define EVP_R_INVALID_OPERATION                          148
207 # define EVP_R_INVALID_PROVIDER_FUNCTIONS                 193
208 # define EVP_R_INVALID_SALT_LENGTH                        186
209 # define EVP_R_KEYGEN_FAILURE                             120
210 # define EVP_R_KEYMGMT_EXPORT_FAILURE                     205
211 # define EVP_R_KEY_SETUP_FAILED                           180
212 # define EVP_R_MEMORY_LIMIT_EXCEEDED                      172
213 # define EVP_R_MESSAGE_DIGEST_IS_NULL                     159
214 # define EVP_R_METHOD_NOT_SUPPORTED                       144
215 # define EVP_R_MISSING_PARAMETERS                         103
216 # define EVP_R_NOT_ABLE_TO_COPY_CTX                       190
217 # define EVP_R_NOT_XOF_OR_INVALID_LENGTH                  178
218 # define EVP_R_NO_CIPHER_SET                              131
219 # define EVP_R_NO_DEFAULT_DIGEST                          158
220 # define EVP_R_NO_DIGEST_SET                              139
221 # define EVP_R_NO_IMPORT_FUNCTION                         206
222 # define EVP_R_NO_KEYMGMT_AVAILABLE                       199
223 # define EVP_R_NO_KEYMGMT_PRESENT                         196
224 # define EVP_R_NO_KEY_SET                                 154
225 # define EVP_R_NO_OPERATION_SET                           149
226 # define EVP_R_NULL_MAC_PKEY_CTX                          208
227 # define EVP_R_ONLY_ONESHOT_SUPPORTED                     177
228 # define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE   150
229 # define EVP_R_OPERATON_NOT_INITIALIZED                   151
230 # define EVP_R_PARAMETER_TOO_LARGE                        187
231 # define EVP_R_PARTIALLY_OVERLAPPING                      162
232 # define EVP_R_PBKDF2_ERROR                               181
233 # define EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED 179
234 # define EVP_R_PRIVATE_KEY_DECODE_ERROR                   145
235 # define EVP_R_PRIVATE_KEY_ENCODE_ERROR                   146
236 # define EVP_R_PUBLIC_KEY_NOT_RSA                         106
237 # define EVP_R_SET_DEFAULT_PROPERTY_FAILURE               209
238 # define EVP_R_TOO_MANY_RECORDS                           183
239 # define EVP_R_UNKNOWN_CIPHER                             160
240 # define EVP_R_UNKNOWN_DIGEST                             161
241 # define EVP_R_UNKNOWN_KEY_TYPE                           207
242 # define EVP_R_UNKNOWN_OPTION                             169
243 # define EVP_R_UNKNOWN_PBE_ALGORITHM                      121
244 # define EVP_R_UNSUPPORTED_ALGORITHM                      156
245 # define EVP_R_UNSUPPORTED_CIPHER                         107
246 # define EVP_R_UNSUPPORTED_KEYLENGTH                      123
247 # define EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION        124
248 # define EVP_R_UNSUPPORTED_KEY_SIZE                       108
249 # define EVP_R_UNSUPPORTED_NUMBER_OF_ROUNDS               135
250 # define EVP_R_UNSUPPORTED_PRF                            125
251 # define EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM          118
252 # define EVP_R_UNSUPPORTED_SALT_TYPE                      126
253 # define EVP_R_UPDATE_ERROR                               189
254 # define EVP_R_WRAP_MODE_NOT_ALLOWED                      170
255 # define EVP_R_WRONG_FINAL_BLOCK_LENGTH                   109
256 # define EVP_R_XTS_DATA_UNIT_IS_TOO_LARGE                 191
257 # define EVP_R_XTS_DUPLICATED_KEYS                        192
258
259 #endif