char *crypt_rsa_export_privkey(struct crypt_rsa_privkey *privkey, int pubkey);
struct crypt_rsa_pubkey *crypt_rsa_get_pubkey(struct crypt_rsa_privkey *privkey);
-int crypt_rsa_encrypt_data(struct crypt_rsa_pubkey *pubkey, const char *data, int datalen, char **encrypted);
-int crypt_rsa_decrypt_data(struct crypt_rsa_privkey *privkey, const char *encrypted, int enclen, char **data);
+int crypt_rsa_encrypt_data(struct crypt_rsa_pubkey *pubkey, const unsigned char *data, int datalen, unsigned char **encrypted);
+int crypt_rsa_decrypt_data(struct crypt_rsa_privkey *privkey, const unsigned char *encrypted, int enclen, unsigned char **data);
int crypt_rsa_encrypt_maxlen(struct crypt_rsa_pubkey *pubkey);
void crypt_rsa_encrypt_free(char *encrypted);
void crypt_rsa_decrypt_free(char *data);