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