rsaerr.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /*
  2. * Generated by util/mkerr.pl DO NOT EDIT
  3. * Copyright 1995-2018 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_RSAERR_H
  11. # define HEADER_RSAERR_H
  12. # ifdef __cplusplus
  13. extern "C"
  14. # endif
  15. int ERR_load_RSA_strings(void);
  16. /*
  17. * RSA function codes.
  18. */
  19. # define RSA_F_CHECK_PADDING_MD 140
  20. # define RSA_F_ENCODE_PKCS1 146
  21. # define RSA_F_INT_RSA_VERIFY 145
  22. # define RSA_F_OLD_RSA_PRIV_DECODE 147
  23. # define RSA_F_PKEY_PSS_INIT 165
  24. # define RSA_F_PKEY_RSA_CTRL 143
  25. # define RSA_F_PKEY_RSA_CTRL_STR 144
  26. # define RSA_F_PKEY_RSA_SIGN 142
  27. # define RSA_F_PKEY_RSA_VERIFY 149
  28. # define RSA_F_PKEY_RSA_VERIFYRECOVER 141
  29. # define RSA_F_RSA_ALGOR_TO_MD 156
  30. # define RSA_F_RSA_BUILTIN_KEYGEN 129
  31. # define RSA_F_RSA_CHECK_KEY 123
  32. # define RSA_F_RSA_CHECK_KEY_EX 160
  33. # define RSA_F_RSA_CMS_DECRYPT 159
  34. # define RSA_F_RSA_CMS_VERIFY 158
  35. # define RSA_F_RSA_ITEM_VERIFY 148
  36. # define RSA_F_RSA_METH_DUP 161
  37. # define RSA_F_RSA_METH_NEW 162
  38. # define RSA_F_RSA_METH_SET1_NAME 163
  39. # define RSA_F_RSA_MGF1_TO_MD 157
  40. # define RSA_F_RSA_NEW_METHOD 106
  41. # define RSA_F_RSA_NULL 124
  42. # define RSA_F_RSA_NULL_PRIVATE_DECRYPT 132
  43. # define RSA_F_RSA_NULL_PRIVATE_ENCRYPT 133
  44. # define RSA_F_RSA_NULL_PUBLIC_DECRYPT 134
  45. # define RSA_F_RSA_NULL_PUBLIC_ENCRYPT 135
  46. # define RSA_F_RSA_OSSL_PRIVATE_DECRYPT 101
  47. # define RSA_F_RSA_OSSL_PRIVATE_ENCRYPT 102
  48. # define RSA_F_RSA_OSSL_PUBLIC_DECRYPT 103
  49. # define RSA_F_RSA_OSSL_PUBLIC_ENCRYPT 104
  50. # define RSA_F_RSA_PADDING_ADD_NONE 107
  51. # define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP 121
  52. # define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP_MGF1 154
  53. # define RSA_F_RSA_PADDING_ADD_PKCS1_PSS 125
  54. # define RSA_F_RSA_PADDING_ADD_PKCS1_PSS_MGF1 152
  55. # define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1 108
  56. # define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2 109
  57. # define RSA_F_RSA_PADDING_ADD_SSLV23 110
  58. # define RSA_F_RSA_PADDING_ADD_X931 127
  59. # define RSA_F_RSA_PADDING_CHECK_NONE 111
  60. # define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP 122
  61. # define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP_MGF1 153
  62. # define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1 112
  63. # define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2 113
  64. # define RSA_F_RSA_PADDING_CHECK_SSLV23 114
  65. # define RSA_F_RSA_PADDING_CHECK_X931 128
  66. # define RSA_F_RSA_PARAM_DECODE 164
  67. # define RSA_F_RSA_PRINT 115
  68. # define RSA_F_RSA_PRINT_FP 116
  69. # define RSA_F_RSA_PRIV_DECODE 150
  70. # define RSA_F_RSA_PRIV_ENCODE 138
  71. # define RSA_F_RSA_PSS_GET_PARAM 151
  72. # define RSA_F_RSA_PSS_TO_CTX 155
  73. # define RSA_F_RSA_PUB_DECODE 139
  74. # define RSA_F_RSA_SETUP_BLINDING 136
  75. # define RSA_F_RSA_SIGN 117
  76. # define RSA_F_RSA_SIGN_ASN1_OCTET_STRING 118
  77. # define RSA_F_RSA_VERIFY 119
  78. # define RSA_F_RSA_VERIFY_ASN1_OCTET_STRING 120
  79. # define RSA_F_RSA_VERIFY_PKCS1_PSS_MGF1 126
  80. /*
  81. * RSA reason codes.
  82. */
  83. # define RSA_R_ALGORITHM_MISMATCH 100
  84. # define RSA_R_BAD_E_VALUE 101
  85. # define RSA_R_BAD_FIXED_HEADER_DECRYPT 102
  86. # define RSA_R_BAD_PAD_BYTE_COUNT 103
  87. # define RSA_R_BAD_SIGNATURE 104
  88. # define RSA_R_BLOCK_TYPE_IS_NOT_01 106
  89. # define RSA_R_BLOCK_TYPE_IS_NOT_02 107
  90. # define RSA_R_DATA_GREATER_THAN_MOD_LEN 108
  91. # define RSA_R_DATA_TOO_LARGE 109
  92. # define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 110
  93. # define RSA_R_DATA_TOO_LARGE_FOR_MODULUS 132
  94. # define RSA_R_DATA_TOO_SMALL 111
  95. # define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE 122
  96. # define RSA_R_DIGEST_DOES_NOT_MATCH 158
  97. # define RSA_R_DIGEST_NOT_ALLOWED 145
  98. # define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY 112
  99. # define RSA_R_DMP1_NOT_CONGRUENT_TO_D 124
  100. # define RSA_R_DMQ1_NOT_CONGRUENT_TO_D 125
  101. # define RSA_R_D_E_NOT_CONGRUENT_TO_1 123
  102. # define RSA_R_FIRST_OCTET_INVALID 133
  103. # define RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE 144
  104. # define RSA_R_INVALID_DIGEST 157
  105. # define RSA_R_INVALID_DIGEST_LENGTH 143
  106. # define RSA_R_INVALID_HEADER 137
  107. # define RSA_R_INVALID_LABEL 160
  108. # define RSA_R_INVALID_MESSAGE_LENGTH 131
  109. # define RSA_R_INVALID_MGF1_MD 156
  110. # define RSA_R_INVALID_MULTI_PRIME_KEY 167
  111. # define RSA_R_INVALID_OAEP_PARAMETERS 161
  112. # define RSA_R_INVALID_PADDING 138
  113. # define RSA_R_INVALID_PADDING_MODE 141
  114. # define RSA_R_INVALID_PSS_PARAMETERS 149
  115. # define RSA_R_INVALID_PSS_SALTLEN 146
  116. # define RSA_R_INVALID_SALT_LENGTH 150
  117. # define RSA_R_INVALID_TRAILER 139
  118. # define RSA_R_INVALID_X931_DIGEST 142
  119. # define RSA_R_IQMP_NOT_INVERSE_OF_Q 126
  120. # define RSA_R_KEY_PRIME_NUM_INVALID 165
  121. # define RSA_R_KEY_SIZE_TOO_SMALL 120
  122. # define RSA_R_LAST_OCTET_INVALID 134
  123. # define RSA_R_MGF1_DIGEST_NOT_ALLOWED 152
  124. # define RSA_R_MODULUS_TOO_LARGE 105
  125. # define RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R 168
  126. # define RSA_R_MP_EXPONENT_NOT_CONGRUENT_TO_D 169
  127. # define RSA_R_MP_R_NOT_PRIME 170
  128. # define RSA_R_NO_PUBLIC_EXPONENT 140
  129. # define RSA_R_NULL_BEFORE_BLOCK_MISSING 113
  130. # define RSA_R_N_DOES_NOT_EQUAL_PRODUCT_OF_PRIMES 172
  131. # define RSA_R_N_DOES_NOT_EQUAL_P_Q 127
  132. # define RSA_R_OAEP_DECODING_ERROR 121
  133. # define RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 148
  134. # define RSA_R_PADDING_CHECK_FAILED 114
  135. # define RSA_R_PKCS_DECODING_ERROR 159
  136. # define RSA_R_PSS_SALTLEN_TOO_SMALL 164
  137. # define RSA_R_P_NOT_PRIME 128
  138. # define RSA_R_Q_NOT_PRIME 129
  139. # define RSA_R_RSA_OPERATIONS_NOT_SUPPORTED 130
  140. # define RSA_R_SLEN_CHECK_FAILED 136
  141. # define RSA_R_SLEN_RECOVERY_FAILED 135
  142. # define RSA_R_SSLV3_ROLLBACK_ATTACK 115
  143. # define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 116
  144. # define RSA_R_UNKNOWN_ALGORITHM_TYPE 117
  145. # define RSA_R_UNKNOWN_DIGEST 166
  146. # define RSA_R_UNKNOWN_MASK_DIGEST 151
  147. # define RSA_R_UNKNOWN_PADDING_TYPE 118
  148. # define RSA_R_UNSUPPORTED_ENCRYPTION_TYPE 162
  149. # define RSA_R_UNSUPPORTED_LABEL_SOURCE 163
  150. # define RSA_R_UNSUPPORTED_MASK_ALGORITHM 153
  151. # define RSA_R_UNSUPPORTED_MASK_PARAMETER 154
  152. # define RSA_R_UNSUPPORTED_SIGNATURE_TYPE 155
  153. # define RSA_R_VALUE_MISSING 147
  154. # define RSA_R_WRONG_SIGNATURE_LENGTH 119
  155. #endif