]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/crypto/sha1.c
xnu-792.25.20.tar.gz
[apple/xnu.git] / bsd / crypto / sha1.c
index fd74b3c8a87c0389f2250dd2504f80c5dda378ce..cf6bbe72a345e6fecc02cc3013ff2e74509950a1 100644 (file)
@@ -1,3 +1,6 @@
+/*     $FreeBSD: src/sys/crypto/sha1.c,v 1.2.2.4 2001/07/03 11:01:27 ume Exp $ */
+/*     $KAME: sha1.c,v 1.5 2000/11/08 06:13:08 itojun Exp $    */
+
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
  * All rights reserved.
@@ -81,7 +84,7 @@ static u_int32_t _K[] = { 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6 };
                sha1_step(ctxt);                \
      }
 
-static void sha1_step __P((struct sha1_ctxt *));
+static void sha1_step(struct sha1_ctxt *);
 
 static void
 sha1_step(ctxt)
@@ -216,18 +219,16 @@ sha1_pad(ctxt)
 }
 
 void
-sha1_loop(ctxt, input0, len)
+sha1_loop(ctxt, input, len)
        struct sha1_ctxt *ctxt;
-       const caddr_t input0;
+       const u_int8_t *input;
        size_t len;
 {
-       const u_int8_t *input;
        size_t gaplen;
        size_t gapstart;
        size_t off;
        size_t copysiz;
 
-       input = (const u_int8_t *)input0;
        off = 0;
 
        while (off < len) {