]>
Commit | Line | Data |
---|---|---|
d02b48c6 RE |
1 | /* Error codes for the RSAREF functions. */ |
2 | ||
3 | /* Function codes. */ | |
4 | #define RSAREF_F_BN_REF_MOD_EXP 100 | |
5 | #define RSAREF_F_RSAREF_BN2BIN 101 | |
6 | #define RSAREF_F_RSA_BN2BIN 102 | |
7 | #define RSAREF_F_RSA_PRIVATE_DECRYPT 103 | |
8 | #define RSAREF_F_RSA_PRIVATE_ENCRYPT 104 | |
9 | #define RSAREF_F_RSA_PUBLIC_DECRYPT 105 | |
10 | #define RSAREF_F_RSA_PUBLIC_ENCRYPT 106 | |
11 | #define RSAREF_F_RSA_REF_BN2BIN 107 | |
12 | #define RSAREF_F_RSA_REF_MOD_EXP 108 | |
13 | #define RSAREF_F_RSA_REF_PRIVATE_DECRYPT 109 | |
14 | #define RSAREF_F_RSA_REF_PRIVATE_ENCRYPT 110 | |
15 | #define RSAREF_F_RSA_REF_PUBLIC_DECRYPT 111 | |
16 | #define RSAREF_F_RSA_REF_PUBLIC_ENCRYPT 112 | |
17 | ||
18 | /* Reason codes. */ | |
58964a49 RE |
19 | #define RSAREF_R_CONTENT_ENCODING 0x0400 |
20 | #define RSAREF_R_DATA 0x0401 | |
21 | #define RSAREF_R_DIGEST_ALGORITHM 0x0402 | |
22 | #define RSAREF_R_ENCODING 0x0403 | |
23 | #define RSAREF_R_ENCRYPTION_ALGORITHM 0x040d | |
24 | #define RSAREF_R_KEY 0x0404 | |
25 | #define RSAREF_R_KEY_ENCODING 0x0405 | |
26 | #define RSAREF_R_LEN 0x0406 | |
27 | #define RSAREF_R_MODULUS_LEN 0x0407 | |
28 | #define RSAREF_R_NEED_RANDOM 0x0408 | |
29 | #define RSAREF_R_PRIVATE_KEY 0x0409 | |
30 | #define RSAREF_R_PUBLIC_KEY 0x040a | |
31 | #define RSAREF_R_SIGNATURE 0x040b | |
32 | #define RSAREF_R_SIGNATURE_ENCODING 0x040c |