X-Git-Url: http://git.pk910.de/?p=NextIRCd.git;a=blobdiff_plain;f=src%2Fcrypt_rsa.h;h=fee06159f32c04a7b0ec79387bbaab797d50c3af;hp=7e72176ab279360a485fc9d46bd301969d82bb6c;hb=HEAD;hpb=878d4152c9e550c5c418832c305d99a305de330d diff --git a/src/crypt_rsa.h b/src/crypt_rsa.h index 7e72176..fee0615 100644 --- a/src/crypt_rsa.h +++ b/src/crypt_rsa.h @@ -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);