/* Error codes for the RSAREF functions. */ /* Function codes. */ #define RSAREF_F_BN_REF_MOD_EXP 100 #define RSAREF_F_RSAREF_BN2BIN 101 #define RSAREF_F_RSA_BN2BIN 102 #define RSAREF_F_RSA_PRIVATE_DECRYPT 103 #define RSAREF_F_RSA_PRIVATE_ENCRYPT 104 #define RSAREF_F_RSA_PUBLIC_DECRYPT 105 #define RSAREF_F_RSA_PUBLIC_ENCRYPT 106 #define RSAREF_F_RSA_REF_BN2BIN 107 #define RSAREF_F_RSA_REF_MOD_EXP 108 #define RSAREF_F_RSA_REF_PRIVATE_DECRYPT 109 #define RSAREF_F_RSA_REF_PRIVATE_ENCRYPT 110 #define RSAREF_F_RSA_REF_PUBLIC_DECRYPT 111 #define RSAREF_F_RSA_REF_PUBLIC_ENCRYPT 112 /* Reason codes. */ #define RSAREF_R_CONTENT_ENCODING 0x0400 #define RSAREF_R_DATA 0x0401 #define RSAREF_R_DIGEST_ALGORITHM 0x0402 #define RSAREF_R_ENCODING 0x0403 #define RSAREF_R_ENCRYPTION_ALGORITHM 0x040d #define RSAREF_R_KEY 0x0404 #define RSAREF_R_KEY_ENCODING 0x0405 #define RSAREF_R_LEN 0x0406 #define RSAREF_R_MODULUS_LEN 0x0407 #define RSAREF_R_NEED_RANDOM 0x0408 #define RSAREF_R_PRIVATE_KEY 0x0409 #define RSAREF_R_PUBLIC_KEY 0x040a #define RSAREF_R_SIGNATURE 0x040b #define RSAREF_R_SIGNATURE_ENCODING 0x040c