45 lines
1.8 KiB
Text
45 lines
1.8 KiB
Text
/* Error codes for the RSA functions. */
|
|
|
|
/* Function codes. */
|
|
#define RSA_F_RSA_EAY_PRIVATE_DECRYPT 100
|
|
#define RSA_F_RSA_EAY_PRIVATE_ENCRYPT 101
|
|
#define RSA_F_RSA_EAY_PUBLIC_DECRYPT 102
|
|
#define RSA_F_RSA_EAY_PUBLIC_ENCRYPT 103
|
|
#define RSA_F_RSA_GENERATE_KEY 104
|
|
#define RSA_F_RSA_NEW_METHOD 105
|
|
#define RSA_F_RSA_PADDING_ADD_NONE 106
|
|
#define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1 107
|
|
#define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2 108
|
|
#define RSA_F_RSA_PADDING_ADD_SSLV23 109
|
|
#define RSA_F_RSA_PADDING_CHECK_NONE 110
|
|
#define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1 111
|
|
#define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2 112
|
|
#define RSA_F_RSA_PADDING_CHECK_SSLV23 113
|
|
#define RSA_F_RSA_PRINT 114
|
|
#define RSA_F_RSA_PRINT_FP 115
|
|
#define RSA_F_RSA_SIGN 116
|
|
#define RSA_F_RSA_SIGN_ASN1_OCTET_STRING 117
|
|
#define RSA_F_RSA_VERIFY 118
|
|
#define RSA_F_RSA_VERIFY_ASN1_OCTET_STRING 119
|
|
|
|
/* Reason codes. */
|
|
#define RSA_R_ALGORITHM_MISMATCH 100
|
|
#define RSA_R_BAD_E_VALUE 101
|
|
#define RSA_R_BAD_FIXED_HEADER_DECRYPT 102
|
|
#define RSA_R_BAD_PAD_BYTE_COUNT 103
|
|
#define RSA_R_BAD_SIGNATURE 104
|
|
#define RSA_R_BAD_ZERO_BYTE 105
|
|
#define RSA_R_BLOCK_TYPE_IS_NOT_01 106
|
|
#define RSA_R_BLOCK_TYPE_IS_NOT_02 107
|
|
#define RSA_R_DATA_GREATER_THAN_MOD_LEN 108
|
|
#define RSA_R_DATA_TOO_LARGE 109
|
|
#define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 110
|
|
#define RSA_R_DATA_TOO_SMALL 111
|
|
#define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY 112
|
|
#define RSA_R_NULL_BEFORE_BLOCK_MISSING 113
|
|
#define RSA_R_PADDING_CHECK_FAILED 114
|
|
#define RSA_R_SSLV3_ROLLBACK_ATTACK 115
|
|
#define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 116
|
|
#define RSA_R_UNKNOWN_ALGORITHM_TYPE 117
|
|
#define RSA_R_UNKNOWN_PADDING_TYPE 118
|
|
#define RSA_R_WRONG_SIGNATURE_LENGTH 119
|