]> git.ipfire.org Git - thirdparty/openssl.git/blame - include/openssl/rsaerr.h
Deprecate the low level Diffie-Hellman functions.
[thirdparty/openssl.git] / include / openssl / rsaerr.h
CommitLineData
52df25cf
RS
1/*
2 * Generated by util/mkerr.pl DO NOT EDIT
afb638f1 3 * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
52df25cf 4 *
48f4ad77 5 * Licensed under the Apache License 2.0 (the "License"). You may not use
52df25cf
RS
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
ae4186b0
DMSP
11#ifndef OPENSSL_RSAERR_H
12# define OPENSSL_RSAERR_H
d86167ec
DMSP
13# pragma once
14
15# include <openssl/macros.h>
936c2b9e 16# ifndef OPENSSL_NO_DEPRECATED_3_0
d86167ec
DMSP
17# define HEADER_RSAERR_H
18# endif
52df25cf 19
cbfa5b03
RS
20# include <openssl/opensslconf.h>
21# include <openssl/symhacks.h>
22
2a6a5607 23
52df25cf 24# ifdef __cplusplus
a699b8e4 25extern "C"
52df25cf
RS
26# endif
27int ERR_load_RSA_strings(void);
52df25cf
RS
28
29/*
30 * RSA function codes.
31 */
936c2b9e 32# ifndef OPENSSL_NO_DEPRECATED_3_0
cbfa5b03
RS
33# define RSA_F_CHECK_PADDING_MD 0
34# define RSA_F_ENCODE_PKCS1 0
35# define RSA_F_INT_RSA_VERIFY 0
36# define RSA_F_OLD_RSA_PRIV_DECODE 0
37# define RSA_F_PKEY_PSS_INIT 0
38# define RSA_F_PKEY_RSA_CTRL 0
39# define RSA_F_PKEY_RSA_CTRL_STR 0
40# define RSA_F_PKEY_RSA_SIGN 0
41# define RSA_F_PKEY_RSA_VERIFY 0
42# define RSA_F_PKEY_RSA_VERIFYRECOVER 0
43# define RSA_F_RSA_ALGOR_TO_MD 0
44# define RSA_F_RSA_BUILTIN_KEYGEN 0
45# define RSA_F_RSA_CHECK_KEY 0
46# define RSA_F_RSA_CHECK_KEY_EX 0
47# define RSA_F_RSA_CMS_DECRYPT 0
48# define RSA_F_RSA_CMS_VERIFY 0
49# define RSA_F_RSA_FIPS186_4_GEN_PROB_PRIMES 0
50# define RSA_F_RSA_ITEM_VERIFY 0
51# define RSA_F_RSA_METH_DUP 0
52# define RSA_F_RSA_METH_NEW 0
53# define RSA_F_RSA_METH_SET1_NAME 0
54# define RSA_F_RSA_MGF1_TO_MD 0
55# define RSA_F_RSA_MULTIP_INFO_NEW 0
56# define RSA_F_RSA_NEW_METHOD 0
57# define RSA_F_RSA_NULL 0
58# define RSA_F_RSA_NULL_PRIVATE_DECRYPT 0
59# define RSA_F_RSA_NULL_PRIVATE_ENCRYPT 0
60# define RSA_F_RSA_NULL_PUBLIC_DECRYPT 0
61# define RSA_F_RSA_NULL_PUBLIC_ENCRYPT 0
62# define RSA_F_RSA_OSSL_PRIVATE_DECRYPT 0
63# define RSA_F_RSA_OSSL_PRIVATE_ENCRYPT 0
64# define RSA_F_RSA_OSSL_PUBLIC_DECRYPT 0
65# define RSA_F_RSA_OSSL_PUBLIC_ENCRYPT 0
66# define RSA_F_RSA_PADDING_ADD_NONE 0
67# define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP 0
68# define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP_MGF1 0
69# define RSA_F_RSA_PADDING_ADD_PKCS1_PSS 0
70# define RSA_F_RSA_PADDING_ADD_PKCS1_PSS_MGF1 0
71# define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1 0
72# define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2 0
73# define RSA_F_RSA_PADDING_ADD_SSLV23 0
74# define RSA_F_RSA_PADDING_ADD_X931 0
75# define RSA_F_RSA_PADDING_CHECK_NONE 0
76# define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP 0
77# define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP_MGF1 0
78# define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1 0
79# define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2 0
80# define RSA_F_RSA_PADDING_CHECK_SSLV23 0
81# define RSA_F_RSA_PADDING_CHECK_X931 0
82# define RSA_F_RSA_PARAM_DECODE 0
83# define RSA_F_RSA_PRINT 0
84# define RSA_F_RSA_PRINT_FP 0
85# define RSA_F_RSA_PRIV_DECODE 0
86# define RSA_F_RSA_PRIV_ENCODE 0
87# define RSA_F_RSA_PSS_GET_PARAM 0
88# define RSA_F_RSA_PSS_TO_CTX 0
89# define RSA_F_RSA_PUB_DECODE 0
90# define RSA_F_RSA_SETUP_BLINDING 0
91# define RSA_F_RSA_SIGN 0
92# define RSA_F_RSA_SIGN_ASN1_OCTET_STRING 0
93# define RSA_F_RSA_SP800_56B_CHECK_KEYPAIR 0
94# define RSA_F_RSA_SP800_56B_CHECK_PUBLIC 0
95# define RSA_F_RSA_SP800_56B_PAIRWISE_TEST 0
96# define RSA_F_RSA_SP800_56B_VALIDATE_STRENGTH 0
97# define RSA_F_RSA_VERIFY 0
98# define RSA_F_RSA_VERIFY_ASN1_OCTET_STRING 0
99# define RSA_F_RSA_VERIFY_PKCS1_PSS_MGF1 0
100# define RSA_F_SETUP_TBUF 0
101# endif
52df25cf
RS
102
103/*
104 * RSA reason codes.
105 */
106# define RSA_R_ALGORITHM_MISMATCH 100
107# define RSA_R_BAD_E_VALUE 101
108# define RSA_R_BAD_FIXED_HEADER_DECRYPT 102
109# define RSA_R_BAD_PAD_BYTE_COUNT 103
110# define RSA_R_BAD_SIGNATURE 104
111# define RSA_R_BLOCK_TYPE_IS_NOT_01 106
112# define RSA_R_BLOCK_TYPE_IS_NOT_02 107
113# define RSA_R_DATA_GREATER_THAN_MOD_LEN 108
114# define RSA_R_DATA_TOO_LARGE 109
115# define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 110
116# define RSA_R_DATA_TOO_LARGE_FOR_MODULUS 132
117# define RSA_R_DATA_TOO_SMALL 111
118# define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE 122
119# define RSA_R_DIGEST_DOES_NOT_MATCH 158
120# define RSA_R_DIGEST_NOT_ALLOWED 145
121# define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY 112
122# define RSA_R_DMP1_NOT_CONGRUENT_TO_D 124
123# define RSA_R_DMQ1_NOT_CONGRUENT_TO_D 125
124# define RSA_R_D_E_NOT_CONGRUENT_TO_1 123
125# define RSA_R_FIRST_OCTET_INVALID 133
126# define RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE 144
127# define RSA_R_INVALID_DIGEST 157
128# define RSA_R_INVALID_DIGEST_LENGTH 143
129# define RSA_R_INVALID_HEADER 137
eef721b0
SL
130# define RSA_R_INVALID_KEYPAIR 171
131# define RSA_R_INVALID_KEY_LENGTH 173
52df25cf
RS
132# define RSA_R_INVALID_LABEL 160
133# define RSA_R_INVALID_MESSAGE_LENGTH 131
134# define RSA_R_INVALID_MGF1_MD 156
eef721b0 135# define RSA_R_INVALID_MODULUS 174
665d899f 136# define RSA_R_INVALID_MULTI_PRIME_KEY 167
52df25cf
RS
137# define RSA_R_INVALID_OAEP_PARAMETERS 161
138# define RSA_R_INVALID_PADDING 138
139# define RSA_R_INVALID_PADDING_MODE 141
140# define RSA_R_INVALID_PSS_PARAMETERS 149
141# define RSA_R_INVALID_PSS_SALTLEN 146
eef721b0 142# define RSA_R_INVALID_REQUEST 175
52df25cf 143# define RSA_R_INVALID_SALT_LENGTH 150
eef721b0 144# define RSA_R_INVALID_STRENGTH 176
52df25cf
RS
145# define RSA_R_INVALID_TRAILER 139
146# define RSA_R_INVALID_X931_DIGEST 142
147# define RSA_R_IQMP_NOT_INVERSE_OF_Q 126
665d899f 148# define RSA_R_KEY_PRIME_NUM_INVALID 165
52df25cf
RS
149# define RSA_R_KEY_SIZE_TOO_SMALL 120
150# define RSA_R_LAST_OCTET_INVALID 134
151# define RSA_R_MGF1_DIGEST_NOT_ALLOWED 152
0cd1b144 152# define RSA_R_MISSING_PRIVATE_KEY 179
52df25cf 153# define RSA_R_MODULUS_TOO_LARGE 105
665d899f
PY
154# define RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R 168
155# define RSA_R_MP_EXPONENT_NOT_CONGRUENT_TO_D 169
156# define RSA_R_MP_R_NOT_PRIME 170
52df25cf
RS
157# define RSA_R_NO_PUBLIC_EXPONENT 140
158# define RSA_R_NULL_BEFORE_BLOCK_MISSING 113
665d899f 159# define RSA_R_N_DOES_NOT_EQUAL_PRODUCT_OF_PRIMES 172
52df25cf
RS
160# define RSA_R_N_DOES_NOT_EQUAL_P_Q 127
161# define RSA_R_OAEP_DECODING_ERROR 121
162# define RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 148
163# define RSA_R_PADDING_CHECK_FAILED 114
eef721b0 164# define RSA_R_PAIRWISE_TEST_FAILURE 177
52df25cf
RS
165# define RSA_R_PKCS_DECODING_ERROR 159
166# define RSA_R_PSS_SALTLEN_TOO_SMALL 164
eef721b0 167# define RSA_R_PUB_EXPONENT_OUT_OF_RANGE 178
52df25cf
RS
168# define RSA_R_P_NOT_PRIME 128
169# define RSA_R_Q_NOT_PRIME 129
170# define RSA_R_RSA_OPERATIONS_NOT_SUPPORTED 130
171# define RSA_R_SLEN_CHECK_FAILED 136
172# define RSA_R_SLEN_RECOVERY_FAILED 135
173# define RSA_R_SSLV3_ROLLBACK_ATTACK 115
174# define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 116
175# define RSA_R_UNKNOWN_ALGORITHM_TYPE 117
176# define RSA_R_UNKNOWN_DIGEST 166
177# define RSA_R_UNKNOWN_MASK_DIGEST 151
178# define RSA_R_UNKNOWN_PADDING_TYPE 118
179# define RSA_R_UNSUPPORTED_ENCRYPTION_TYPE 162
180# define RSA_R_UNSUPPORTED_LABEL_SOURCE 163
181# define RSA_R_UNSUPPORTED_MASK_ALGORITHM 153
182# define RSA_R_UNSUPPORTED_MASK_PARAMETER 154
183# define RSA_R_UNSUPPORTED_SIGNATURE_TYPE 155
184# define RSA_R_VALUE_MISSING 147
185# define RSA_R_WRONG_SIGNATURE_LENGTH 119
186
187#endif