X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fcrypt_rsa.h;h=fee06159f32c04a7b0ec79387bbaab797d50c3af;hb=HEAD;hp=7e72176ab279360a485fc9d46bd301969d82bb6c;hpb=20455ed400c62ab7c3f7e6e3c6422d155d98a748;p=NextIRCd.git 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);