push
[NextIRCd.git] / src / crypt_rsa.h
index 7e72176ab279360a485fc9d46bd301969d82bb6c..fee06159f32c04a7b0ec79387bbaab797d50c3af 100644 (file)
@@ -33,8 +33,8 @@ void crypt_rsa_unload_privkey(struct crypt_rsa_privkey *privkey);
 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);