aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/idea-stub.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-10-12 17:35:50 +0000
committerDavid Shaw <[email protected]>2004-10-12 17:35:50 +0000
commitb15cc684b8a6fe6edc89370d359849eeab05089b (patch)
tree0f05ea572a2c18dd2924c6b7e0ebd18836f97ce6 /cipher/idea-stub.c
parent(read_parameter_file): Changed to use iobuf based file (diff)
downloadgnupg-b15cc684b8a6fe6edc89370d359849eeab05089b.tar.gz
gnupg-b15cc684b8a6fe6edc89370d359849eeab05089b.zip
* algorithms.h, cast5.c, cipher.c, idea-stub.c, twofish.c, blowfish.c,
des.c, rijndael.c: Consistently use const for input buffers.
Diffstat (limited to '')
-rw-r--r--cipher/idea-stub.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/cipher/idea-stub.c b/cipher/idea-stub.c
index 7132a1084..efc5268d7 100644
--- a/cipher/idea-stub.c
+++ b/cipher/idea-stub.c
@@ -109,9 +109,9 @@ dlsym ( void *handle, const char *name )
typedef
const char *(*INFO_FNC)(int, size_t*, size_t*, size_t*,
- int (**)( void *, byte *, unsigned),
- void (**)( void *, byte *, byte *),
- void (**)( void *, byte *, byte *));
+ int (**)( void *, const byte *, unsigned),
+ void (**)( void *, byte *, const byte *),
+ void (**)( void *, byte *, const byte *));
static INFO_FNC
load_module (const char *name)
@@ -152,11 +152,11 @@ load_module (const char *name)
const char *
idea_get_info( int algo, size_t *keylen,
- size_t *blocksize, size_t *contextsize,
- int (**r_setkey)( void *c, byte *key, unsigned keylen ),
- void (**r_encrypt)( void *c, byte *outbuf, byte *inbuf ),
- void (**r_decrypt)( void *c, byte *outbuf, byte *inbuf )
- )
+ size_t *blocksize, size_t *contextsize,
+ int (**r_setkey)( void *c, const byte *key, unsigned keylen ),
+ void (**r_encrypt)( void *c, byte *outbuf, const byte *inbuf ),
+ void (**r_decrypt)( void *c, byte *outbuf, const byte *inbuf )
+ )
{
static int initialized;
static INFO_FNC info_fnc;