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 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_RSAERR_H
|
---|
12 | # define OPENSSL_RSAERR_H
|
---|
13 | # pragma once
|
---|
14 |
|
---|
15 | # include <openssl/opensslconf.h>
|
---|
16 | # include <openssl/symhacks.h>
|
---|
17 | # include <openssl/cryptoerr_legacy.h>
|
---|
18 |
|
---|
19 |
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * RSA reason codes.
|
---|
23 | */
|
---|
24 | # define RSA_R_ALGORITHM_MISMATCH 100
|
---|
25 | # define RSA_R_BAD_E_VALUE 101
|
---|
26 | # define RSA_R_BAD_FIXED_HEADER_DECRYPT 102
|
---|
27 | # define RSA_R_BAD_PAD_BYTE_COUNT 103
|
---|
28 | # define RSA_R_BAD_SIGNATURE 104
|
---|
29 | # define RSA_R_BLOCK_TYPE_IS_NOT_01 106
|
---|
30 | # define RSA_R_BLOCK_TYPE_IS_NOT_02 107
|
---|
31 | # define RSA_R_DATA_GREATER_THAN_MOD_LEN 108
|
---|
32 | # define RSA_R_DATA_TOO_LARGE 109
|
---|
33 | # define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 110
|
---|
34 | # define RSA_R_DATA_TOO_LARGE_FOR_MODULUS 132
|
---|
35 | # define RSA_R_DATA_TOO_SMALL 111
|
---|
36 | # define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE 122
|
---|
37 | # define RSA_R_DIGEST_DOES_NOT_MATCH 158
|
---|
38 | # define RSA_R_DIGEST_NOT_ALLOWED 145
|
---|
39 | # define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY 112
|
---|
40 | # define RSA_R_DMP1_NOT_CONGRUENT_TO_D 124
|
---|
41 | # define RSA_R_DMQ1_NOT_CONGRUENT_TO_D 125
|
---|
42 | # define RSA_R_D_E_NOT_CONGRUENT_TO_1 123
|
---|
43 | # define RSA_R_FIRST_OCTET_INVALID 133
|
---|
44 | # define RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE 144
|
---|
45 | # define RSA_R_INVALID_DIGEST 157
|
---|
46 | # define RSA_R_INVALID_DIGEST_LENGTH 143
|
---|
47 | # define RSA_R_INVALID_HEADER 137
|
---|
48 | # define RSA_R_INVALID_KEYPAIR 171
|
---|
49 | # define RSA_R_INVALID_KEY_LENGTH 173
|
---|
50 | # define RSA_R_INVALID_LABEL 160
|
---|
51 | # define RSA_R_INVALID_LENGTH 181
|
---|
52 | # define RSA_R_INVALID_MESSAGE_LENGTH 131
|
---|
53 | # define RSA_R_INVALID_MGF1_MD 156
|
---|
54 | # define RSA_R_INVALID_MODULUS 174
|
---|
55 | # define RSA_R_INVALID_MULTI_PRIME_KEY 167
|
---|
56 | # define RSA_R_INVALID_OAEP_PARAMETERS 161
|
---|
57 | # define RSA_R_INVALID_PADDING 138
|
---|
58 | # define RSA_R_INVALID_PADDING_MODE 141
|
---|
59 | # define RSA_R_INVALID_PSS_PARAMETERS 149
|
---|
60 | # define RSA_R_INVALID_PSS_SALTLEN 146
|
---|
61 | # define RSA_R_INVALID_REQUEST 175
|
---|
62 | # define RSA_R_INVALID_SALT_LENGTH 150
|
---|
63 | # define RSA_R_INVALID_STRENGTH 176
|
---|
64 | # define RSA_R_INVALID_TRAILER 139
|
---|
65 | # define RSA_R_INVALID_X931_DIGEST 142
|
---|
66 | # define RSA_R_IQMP_NOT_INVERSE_OF_Q 126
|
---|
67 | # define RSA_R_KEY_PRIME_NUM_INVALID 165
|
---|
68 | # define RSA_R_KEY_SIZE_TOO_SMALL 120
|
---|
69 | # define RSA_R_LAST_OCTET_INVALID 134
|
---|
70 | # define RSA_R_MGF1_DIGEST_NOT_ALLOWED 152
|
---|
71 | # define RSA_R_MISSING_PRIVATE_KEY 179
|
---|
72 | # define RSA_R_MODULUS_TOO_LARGE 105
|
---|
73 | # define RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R 168
|
---|
74 | # define RSA_R_MP_EXPONENT_NOT_CONGRUENT_TO_D 169
|
---|
75 | # define RSA_R_MP_R_NOT_PRIME 170
|
---|
76 | # define RSA_R_NO_PUBLIC_EXPONENT 140
|
---|
77 | # define RSA_R_NULL_BEFORE_BLOCK_MISSING 113
|
---|
78 | # define RSA_R_N_DOES_NOT_EQUAL_PRODUCT_OF_PRIMES 172
|
---|
79 | # define RSA_R_N_DOES_NOT_EQUAL_P_Q 127
|
---|
80 | # define RSA_R_OAEP_DECODING_ERROR 121
|
---|
81 | # define RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 148
|
---|
82 | # define RSA_R_PADDING_CHECK_FAILED 114
|
---|
83 | # define RSA_R_PAIRWISE_TEST_FAILURE 177
|
---|
84 | # define RSA_R_PKCS_DECODING_ERROR 159
|
---|
85 | # define RSA_R_PSS_SALTLEN_TOO_SMALL 164
|
---|
86 | # define RSA_R_PUB_EXPONENT_OUT_OF_RANGE 178
|
---|
87 | # define RSA_R_P_NOT_PRIME 128
|
---|
88 | # define RSA_R_Q_NOT_PRIME 129
|
---|
89 | # define RSA_R_RANDOMNESS_SOURCE_STRENGTH_INSUFFICIENT 180
|
---|
90 | # define RSA_R_RSA_OPERATIONS_NOT_SUPPORTED 130
|
---|
91 | # define RSA_R_SLEN_CHECK_FAILED 136
|
---|
92 | # define RSA_R_SLEN_RECOVERY_FAILED 135
|
---|
93 | # define RSA_R_SSLV3_ROLLBACK_ATTACK 115
|
---|
94 | # define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 116
|
---|
95 | # define RSA_R_UNKNOWN_ALGORITHM_TYPE 117
|
---|
96 | # define RSA_R_UNKNOWN_DIGEST 166
|
---|
97 | # define RSA_R_UNKNOWN_MASK_DIGEST 151
|
---|
98 | # define RSA_R_UNKNOWN_PADDING_TYPE 118
|
---|
99 | # define RSA_R_UNSUPPORTED_ENCRYPTION_TYPE 162
|
---|
100 | # define RSA_R_UNSUPPORTED_LABEL_SOURCE 163
|
---|
101 | # define RSA_R_UNSUPPORTED_MASK_ALGORITHM 153
|
---|
102 | # define RSA_R_UNSUPPORTED_MASK_PARAMETER 154
|
---|
103 | # define RSA_R_UNSUPPORTED_SIGNATURE_TYPE 155
|
---|
104 | # define RSA_R_VALUE_MISSING 147
|
---|
105 | # define RSA_R_WRONG_SIGNATURE_LENGTH 119
|
---|
106 |
|
---|
107 | #endif
|
---|