2
0

evperr.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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 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_EVPERR_H
  11. # define HEADER_EVPERR_H
  12. # include <openssl/symhacks.h>
  13. # ifdef __cplusplus
  14. extern "C"
  15. # endif
  16. int ERR_load_EVP_strings(void);
  17. /*
  18. * EVP function codes.
  19. */
  20. # define EVP_F_AESNI_INIT_KEY 165
  21. # define EVP_F_AESNI_XTS_INIT_KEY 207
  22. # define EVP_F_AES_GCM_CTRL 196
  23. # define EVP_F_AES_INIT_KEY 133
  24. # define EVP_F_AES_OCB_CIPHER 169
  25. # define EVP_F_AES_T4_INIT_KEY 178
  26. # define EVP_F_AES_T4_XTS_INIT_KEY 208
  27. # define EVP_F_AES_WRAP_CIPHER 170
  28. # define EVP_F_AES_XTS_INIT_KEY 209
  29. # define EVP_F_ALG_MODULE_INIT 177
  30. # define EVP_F_ARIA_CCM_INIT_KEY 175
  31. # define EVP_F_ARIA_GCM_CTRL 197
  32. # define EVP_F_ARIA_GCM_INIT_KEY 176
  33. # define EVP_F_ARIA_INIT_KEY 185
  34. # define EVP_F_B64_NEW 198
  35. # define EVP_F_CAMELLIA_INIT_KEY 159
  36. # define EVP_F_CHACHA20_POLY1305_CTRL 182
  37. # define EVP_F_CMLL_T4_INIT_KEY 179
  38. # define EVP_F_DES_EDE3_WRAP_CIPHER 171
  39. # define EVP_F_DO_SIGVER_INIT 161
  40. # define EVP_F_ENC_NEW 199
  41. # define EVP_F_EVP_CIPHERINIT_EX 123
  42. # define EVP_F_EVP_CIPHER_ASN1_TO_PARAM 204
  43. # define EVP_F_EVP_CIPHER_CTX_COPY 163
  44. # define EVP_F_EVP_CIPHER_CTX_CTRL 124
  45. # define EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH 122
  46. # define EVP_F_EVP_CIPHER_PARAM_TO_ASN1 205
  47. # define EVP_F_EVP_DECRYPTFINAL_EX 101
  48. # define EVP_F_EVP_DECRYPTUPDATE 166
  49. # define EVP_F_EVP_DIGESTFINALXOF 174
  50. # define EVP_F_EVP_DIGESTINIT_EX 128
  51. # define EVP_F_EVP_ENCRYPTDECRYPTUPDATE 219
  52. # define EVP_F_EVP_ENCRYPTFINAL_EX 127
  53. # define EVP_F_EVP_ENCRYPTUPDATE 167
  54. # define EVP_F_EVP_MD_CTX_COPY_EX 110
  55. # define EVP_F_EVP_MD_SIZE 162
  56. # define EVP_F_EVP_OPENINIT 102
  57. # define EVP_F_EVP_PBE_ALG_ADD 115
  58. # define EVP_F_EVP_PBE_ALG_ADD_TYPE 160
  59. # define EVP_F_EVP_PBE_CIPHERINIT 116
  60. # define EVP_F_EVP_PBE_SCRYPT 181
  61. # define EVP_F_EVP_PKCS82PKEY 111
  62. # define EVP_F_EVP_PKEY2PKCS8 113
  63. # define EVP_F_EVP_PKEY_ASN1_ADD0 188
  64. # define EVP_F_EVP_PKEY_CHECK 186
  65. # define EVP_F_EVP_PKEY_COPY_PARAMETERS 103
  66. # define EVP_F_EVP_PKEY_CTX_CTRL 137
  67. # define EVP_F_EVP_PKEY_CTX_CTRL_STR 150
  68. # define EVP_F_EVP_PKEY_CTX_DUP 156
  69. # define EVP_F_EVP_PKEY_CTX_MD 168
  70. # define EVP_F_EVP_PKEY_DECRYPT 104
  71. # define EVP_F_EVP_PKEY_DECRYPT_INIT 138
  72. # define EVP_F_EVP_PKEY_DECRYPT_OLD 151
  73. # define EVP_F_EVP_PKEY_DERIVE 153
  74. # define EVP_F_EVP_PKEY_DERIVE_INIT 154
  75. # define EVP_F_EVP_PKEY_DERIVE_SET_PEER 155
  76. # define EVP_F_EVP_PKEY_ENCRYPT 105
  77. # define EVP_F_EVP_PKEY_ENCRYPT_INIT 139
  78. # define EVP_F_EVP_PKEY_ENCRYPT_OLD 152
  79. # define EVP_F_EVP_PKEY_GET0_DH 119
  80. # define EVP_F_EVP_PKEY_GET0_DSA 120
  81. # define EVP_F_EVP_PKEY_GET0_EC_KEY 131
  82. # define EVP_F_EVP_PKEY_GET0_HMAC 183
  83. # define EVP_F_EVP_PKEY_GET0_POLY1305 184
  84. # define EVP_F_EVP_PKEY_GET0_RSA 121
  85. # define EVP_F_EVP_PKEY_GET0_SIPHASH 172
  86. # define EVP_F_EVP_PKEY_GET_RAW_PRIVATE_KEY 202
  87. # define EVP_F_EVP_PKEY_GET_RAW_PUBLIC_KEY 203
  88. # define EVP_F_EVP_PKEY_KEYGEN 146
  89. # define EVP_F_EVP_PKEY_KEYGEN_INIT 147
  90. # define EVP_F_EVP_PKEY_METH_ADD0 194
  91. # define EVP_F_EVP_PKEY_METH_NEW 195
  92. # define EVP_F_EVP_PKEY_NEW 106
  93. # define EVP_F_EVP_PKEY_NEW_CMAC_KEY 193
  94. # define EVP_F_EVP_PKEY_NEW_RAW_PRIVATE_KEY 191
  95. # define EVP_F_EVP_PKEY_NEW_RAW_PUBLIC_KEY 192
  96. # define EVP_F_EVP_PKEY_PARAMGEN 148
  97. # define EVP_F_EVP_PKEY_PARAMGEN_INIT 149
  98. # define EVP_F_EVP_PKEY_PARAM_CHECK 189
  99. # define EVP_F_EVP_PKEY_PUBLIC_CHECK 190
  100. # define EVP_F_EVP_PKEY_SET1_ENGINE 187
  101. # define EVP_F_EVP_PKEY_SET_ALIAS_TYPE 206
  102. # define EVP_F_EVP_PKEY_SIGN 140
  103. # define EVP_F_EVP_PKEY_SIGN_INIT 141
  104. # define EVP_F_EVP_PKEY_VERIFY 142
  105. # define EVP_F_EVP_PKEY_VERIFY_INIT 143
  106. # define EVP_F_EVP_PKEY_VERIFY_RECOVER 144
  107. # define EVP_F_EVP_PKEY_VERIFY_RECOVER_INIT 145
  108. # define EVP_F_EVP_SIGNFINAL 107
  109. # define EVP_F_EVP_VERIFYFINAL 108
  110. # define EVP_F_INT_CTX_NEW 157
  111. # define EVP_F_OK_NEW 200
  112. # define EVP_F_PKCS5_PBE_KEYIVGEN 117
  113. # define EVP_F_PKCS5_V2_PBE_KEYIVGEN 118
  114. # define EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN 164
  115. # define EVP_F_PKCS5_V2_SCRYPT_KEYIVGEN 180
  116. # define EVP_F_PKEY_SET_TYPE 158
  117. # define EVP_F_RC2_MAGIC_TO_METH 109
  118. # define EVP_F_RC5_CTRL 125
  119. # define EVP_F_R_32_12_16_INIT_KEY 242
  120. # define EVP_F_S390X_AES_GCM_CTRL 201
  121. # define EVP_F_UPDATE 173
  122. /*
  123. * EVP reason codes.
  124. */
  125. # define EVP_R_AES_KEY_SETUP_FAILED 143
  126. # define EVP_R_ARIA_KEY_SETUP_FAILED 176
  127. # define EVP_R_BAD_DECRYPT 100
  128. # define EVP_R_BAD_KEY_LENGTH 195
  129. # define EVP_R_BUFFER_TOO_SMALL 155
  130. # define EVP_R_CAMELLIA_KEY_SETUP_FAILED 157
  131. # define EVP_R_CIPHER_PARAMETER_ERROR 122
  132. # define EVP_R_COMMAND_NOT_SUPPORTED 147
  133. # define EVP_R_COPY_ERROR 173
  134. # define EVP_R_CTRL_NOT_IMPLEMENTED 132
  135. # define EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED 133
  136. # define EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH 138
  137. # define EVP_R_DECODE_ERROR 114
  138. # define EVP_R_DIFFERENT_KEY_TYPES 101
  139. # define EVP_R_DIFFERENT_PARAMETERS 153
  140. # define EVP_R_ERROR_LOADING_SECTION 165
  141. # define EVP_R_ERROR_SETTING_FIPS_MODE 166
  142. # define EVP_R_EXPECTING_AN_HMAC_KEY 174
  143. # define EVP_R_EXPECTING_AN_RSA_KEY 127
  144. # define EVP_R_EXPECTING_A_DH_KEY 128
  145. # define EVP_R_EXPECTING_A_DSA_KEY 129
  146. # define EVP_R_EXPECTING_A_EC_KEY 142
  147. # define EVP_R_EXPECTING_A_POLY1305_KEY 164
  148. # define EVP_R_EXPECTING_A_SIPHASH_KEY 175
  149. # define EVP_R_FIPS_MODE_NOT_SUPPORTED 167
  150. # define EVP_R_GET_RAW_KEY_FAILED 182
  151. # define EVP_R_ILLEGAL_SCRYPT_PARAMETERS 171
  152. # define EVP_R_INITIALIZATION_ERROR 134
  153. # define EVP_R_INPUT_NOT_INITIALIZED 111
  154. # define EVP_R_INVALID_DIGEST 152
  155. # define EVP_R_INVALID_FIPS_MODE 168
  156. # define EVP_R_INVALID_IV_LENGTH 194
  157. # define EVP_R_INVALID_KEY 163
  158. # define EVP_R_INVALID_KEY_LENGTH 130
  159. # define EVP_R_INVALID_OPERATION 148
  160. # define EVP_R_KEYGEN_FAILURE 120
  161. # define EVP_R_KEY_SETUP_FAILED 180
  162. # define EVP_R_MEMORY_LIMIT_EXCEEDED 172
  163. # define EVP_R_MESSAGE_DIGEST_IS_NULL 159
  164. # define EVP_R_METHOD_NOT_SUPPORTED 144
  165. # define EVP_R_MISSING_PARAMETERS 103
  166. # define EVP_R_NOT_XOF_OR_INVALID_LENGTH 178
  167. # define EVP_R_NO_CIPHER_SET 131
  168. # define EVP_R_NO_DEFAULT_DIGEST 158
  169. # define EVP_R_NO_DIGEST_SET 139
  170. # define EVP_R_NO_KEY_SET 154
  171. # define EVP_R_NO_OPERATION_SET 149
  172. # define EVP_R_ONLY_ONESHOT_SUPPORTED 177
  173. # define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 150
  174. # define EVP_R_OPERATON_NOT_INITIALIZED 151
  175. # define EVP_R_OUTPUT_WOULD_OVERFLOW 184
  176. # define EVP_R_PARTIALLY_OVERLAPPING 162
  177. # define EVP_R_PBKDF2_ERROR 181
  178. # define EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED 179
  179. # define EVP_R_PRIVATE_KEY_DECODE_ERROR 145
  180. # define EVP_R_PRIVATE_KEY_ENCODE_ERROR 146
  181. # define EVP_R_PUBLIC_KEY_NOT_RSA 106
  182. # define EVP_R_UNKNOWN_CIPHER 160
  183. # define EVP_R_UNKNOWN_DIGEST 161
  184. # define EVP_R_UNKNOWN_OPTION 169
  185. # define EVP_R_UNKNOWN_PBE_ALGORITHM 121
  186. # define EVP_R_UNSUPPORTED_ALGORITHM 156
  187. # define EVP_R_UNSUPPORTED_CIPHER 107
  188. # define EVP_R_UNSUPPORTED_KEYLENGTH 123
  189. # define EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION 124
  190. # define EVP_R_UNSUPPORTED_KEY_SIZE 108
  191. # define EVP_R_UNSUPPORTED_NUMBER_OF_ROUNDS 135
  192. # define EVP_R_UNSUPPORTED_PRF 125
  193. # define EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM 118
  194. # define EVP_R_UNSUPPORTED_SALT_TYPE 126
  195. # define EVP_R_WRAP_MODE_NOT_ALLOWED 170
  196. # define EVP_R_WRONG_FINAL_BLOCK_LENGTH 109
  197. # define EVP_R_XTS_DUPLICATED_KEYS 183
  198. #endif