From 88017cda82fa303fc0b4dcbd37d27e7b4605202d Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Wed, 1 Oct 2008 01:29:43 +0200 Subject: Const-ify the arc4 interface. Allow passing const data into the api without generating warnings. --- include/fitz/stm_crypt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/fitz/stm_crypt.h b/include/fitz/stm_crypt.h index 57001752..9c3679af 100644 --- a/include/fitz/stm_crypt.h +++ b/include/fitz/stm_crypt.h @@ -34,9 +34,9 @@ struct fz_arc4_s unsigned char state[256]; }; -void fz_arc4init(fz_arc4 *state, unsigned char *key, unsigned len); +void fz_arc4init(fz_arc4 *state, const unsigned char *key, const unsigned len); unsigned char fz_arc4next(fz_arc4 *state); -void fz_arc4encrypt(fz_arc4 *state, unsigned char *dest, unsigned char *src, unsigned len); +void fz_arc4encrypt(fz_arc4 *state, unsigned char *dest, const unsigned char *src, const unsigned len); /* TODO: sha1 */ /* TODO: aes */ -- cgit v1.2.3