diff options
author | Werner Koch <wk@gnupg.org> | 2007-02-21 13:26:38 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2007-02-21 13:26:38 +0000 |
commit | 56d370e0084511d9f9d706d0bcf2e3375b46ca25 (patch) | |
tree | db028f7ec619291d6ed5ee5929f58bf835fa4ff3 /cipher/tiger.c | |
parent | bfb2b7eaf2808d7ba17914b91c00bfc02b4ec6c2 (diff) | |
download | libgcrypt-56d370e0084511d9f9d706d0bcf2e3375b46ca25.tar.gz |
A lot of cleanups as well as minor API changes.
Ported some changes from 1.2 to here.
Diffstat (limited to 'cipher/tiger.c')
-rw-r--r-- | cipher/tiger.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cipher/tiger.c b/cipher/tiger.c index 067521bf..a6200457 100644 --- a/cipher/tiger.c +++ b/cipher/tiger.c @@ -667,7 +667,7 @@ key_schedule( u64 *x ) * Transform the message DATA which consists of 512 bytes (8 words) */ static void -transform( TIGER_CONTEXT *hd, byte *data ) +transform ( TIGER_CONTEXT *hd, const unsigned char *data ) { u64 a,b,c,aa,bb,cc; u64 x[8]; @@ -717,8 +717,9 @@ transform( TIGER_CONTEXT *hd, byte *data ) * of INBUF with length INLEN. */ static void -tiger_write( void *context, byte *inbuf, size_t inlen) +tiger_write ( void *context, const void *inbuf_arg, size_t inlen) { + const unsigned char *inbuf = inbuf_arg; TIGER_CONTEXT *hd = context; if( hd->count == 64 ) /* flush the buffer */ |