summaryrefslogtreecommitdiff
path: root/cipher/md4.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-02-21 13:26:38 +0000
committerWerner Koch <wk@gnupg.org>2007-02-21 13:26:38 +0000
commit56d370e0084511d9f9d706d0bcf2e3375b46ca25 (patch)
treedb028f7ec619291d6ed5ee5929f58bf835fa4ff3 /cipher/md4.c
parentbfb2b7eaf2808d7ba17914b91c00bfc02b4ec6c2 (diff)
downloadlibgcrypt-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/md4.c')
-rw-r--r--cipher/md4.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cipher/md4.c b/cipher/md4.c
index 59953be4..680cf87f 100644
--- a/cipher/md4.c
+++ b/cipher/md4.c
@@ -90,7 +90,7 @@ md4_init( void *context )
* transform 64 bytes
*/
static void
-transform( MD4_CONTEXT *ctx, byte *data )
+transform ( MD4_CONTEXT *ctx, const unsigned char *data )
{
u32 in[16];
register u32 A = ctx->A;
@@ -192,8 +192,9 @@ transform( MD4_CONTEXT *ctx, byte *data )
* in the message whose digest is being computed.
*/
static void
-md4_write( void *context, byte *inbuf, size_t inlen)
+md4_write ( void *context, const void *inbuf_arg, size_t inlen)
{
+ const unsigned char *inbuf = inbuf_arg;
MD4_CONTEXT *hd = context;
if( hd->count == 64 ) /* flush the buffer */