summaryrefslogtreecommitdiff
path: root/sys/crypto
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>2000-10-09 18:49:14 +0000
committerArchie Cobbs <archie@FreeBSD.org>2000-10-09 18:49:14 +0000
commit8576ccb74b099af221b753525287675a6b301786 (patch)
tree1b8898ceee714418389bc2257e36b620fa0c6aef /sys/crypto
parentacadb17f53fb6874cdd6fe32aa2418799d560518 (diff)
downloadsrc-test2-8576ccb74b099af221b753525287675a6b301786.tar.gz
src-test2-8576ccb74b099af221b753525287675a6b301786.zip
Notes
Diffstat (limited to 'sys/crypto')
-rw-r--r--sys/crypto/sha1.c6
-rw-r--r--sys/crypto/sha1.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/crypto/sha1.c b/sys/crypto/sha1.c
index 815bc5a16ca1..bbf20b8f0ce8 100644
--- a/sys/crypto/sha1.c
+++ b/sys/crypto/sha1.c
@@ -219,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) {
diff --git a/sys/crypto/sha1.h b/sys/crypto/sha1.h
index 2e87f0537e70..9162ce65a714 100644
--- a/sys/crypto/sha1.h
+++ b/sys/crypto/sha1.h
@@ -57,7 +57,7 @@ struct sha1_ctxt {
#ifdef _KERNEL
extern void sha1_init __P((struct sha1_ctxt *));
extern void sha1_pad __P((struct sha1_ctxt *));
-extern void sha1_loop __P((struct sha1_ctxt *, const caddr_t, size_t));
+extern void sha1_loop __P((struct sha1_ctxt *, const u_int8_t *, size_t));
extern void sha1_result __P((struct sha1_ctxt *, caddr_t));
/* compatibilty with other SHA1 source codes */
@@ -65,7 +65,7 @@ typedef struct sha1_ctxt SHA1_CTX;
#define SHA1Init(x) sha1_init((x))
#define SHA1Update(x, y, z) sha1_loop((x), (y), (z))
#define SHA1Final(x, y) sha1_result((y), (x))
-#endif
+#endif /* _KERNEL */
#define SHA1_RESULTLEN (160/8)