]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - crypt.h
stream cipher: Allow in-place encryption.
[paraslash.git] / crypt.h
diff --git a/crypt.h b/crypt.h
index d2c2b32024ccdaa1d35af2b7b3813976040f61e7..fc41acf3f04efcedcad75a7a61e9dae3b8dfd6fa 100644 (file)
--- a/crypt.h
+++ b/crypt.h
@@ -54,9 +54,9 @@ struct stream_cipher_context {
 };
 struct stream_cipher *sc_new(const unsigned char *data, int len);
 void sc_free(struct stream_cipher *sc);
-int sc_send_bin_buffer(struct stream_cipher_context *scc, const char *buf,
+int sc_send_bin_buffer(struct stream_cipher_context *scc, char *buf,
                size_t len);
-int sc_send_buffer(struct stream_cipher_context *scc, const char *buf);
+int sc_send_buffer(struct stream_cipher_context *scc, char *buf);
 __printf_2_3 int sc_send_va_buffer(struct stream_cipher_context *scc,
                const char *fmt, ...);
 int sc_recv_bin_buffer(struct stream_cipher_context *scc, char *buf,