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