1 /* Error codes for the RSA functions. */
4 #define RSA_F_MEMORY_LOCK 100
5 #define RSA_F_RSA_EAY_PRIVATE_DECRYPT 101
6 #define RSA_F_RSA_EAY_PRIVATE_ENCRYPT 102
7 #define RSA_F_RSA_EAY_PUBLIC_DECRYPT 103
8 #define RSA_F_RSA_EAY_PUBLIC_ENCRYPT 104
9 #define RSA_F_RSA_GENERATE_KEY 105
10 #define RSA_F_RSA_NEW_METHOD 106
11 #define RSA_F_RSA_PADDING_ADD_NONE 107
12 #define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP 121
13 #define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1 108
14 #define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2 109
15 #define RSA_F_RSA_PADDING_ADD_SSLV23 110
16 #define RSA_F_RSA_PADDING_CHECK_NONE 111
17 #define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP 122
18 #define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1 112
19 #define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2 113
20 #define RSA_F_RSA_PADDING_CHECK_SSLV23 114
21 #define RSA_F_RSA_PRINT 115
22 #define RSA_F_RSA_PRINT_FP 116
23 #define RSA_F_RSA_SIGN 117
24 #define RSA_F_RSA_SIGN_ASN1_OCTET_STRING 118
25 #define RSA_F_RSA_VERIFY 119
26 #define RSA_F_RSA_VERIFY_ASN1_OCTET_STRING 120
29 #define RSA_R_ALGORITHM_MISMATCH 100
30 #define RSA_R_BAD_E_VALUE 101
31 #define RSA_R_BAD_FIXED_HEADER_DECRYPT 102
32 #define RSA_R_BAD_PAD_BYTE_COUNT 103
33 #define RSA_R_BAD_SIGNATURE 104
34 #define RSA_R_BLOCK_TYPE_IS_NOT_01 106
35 #define RSA_R_BLOCK_TYPE_IS_NOT_02 107
36 #define RSA_R_DATA_GREATER_THAN_MOD_LEN 108
37 #define RSA_R_DATA_TOO_LARGE 109
38 #define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 110
39 #define RSA_R_DATA_TOO_SMALL 111
40 #define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE 122
41 #define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY 112
42 #define RSA_R_KEY_SIZE_TOO_SMALL 120
43 #define RSA_R_NULL_BEFORE_BLOCK_MISSING 113
44 #define RSA_R_OAEP_DECODING_ERROR 121
45 #define RSA_R_PADDING_CHECK_FAILED 114
46 #define RSA_R_SSLV3_ROLLBACK_ATTACK 115
47 #define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 116
48 #define RSA_R_UNKNOWN_ALGORITHM_TYPE 117
49 #define RSA_R_UNKNOWN_PADDING_TYPE 118
50 #define RSA_R_WRONG_SIGNATURE_LENGTH 119