diff options
author | 2004-05-03 18:07:07 +0000 | |
---|---|---|
committer | 2004-05-03 18:07:07 +0000 | |
commit | 18c901a19bbbbdbeee7aa5de73fda1984de3fc0b (patch) | |
tree | f4bc768c1322eb2354cc061a29c385664945ae6e /lib/libc/hash/rmd160.c | |
parent | Use KNF indentation style and do some u_char -> u_int8_t conversion (diff) | |
download | wireguard-openbsd-18c901a19bbbbdbeee7aa5de73fda1984de3fc0b.tar.xz wireguard-openbsd-18c901a19bbbbdbeee7aa5de73fda1984de3fc0b.zip |
Some u_char -> u_int8_t conversion I missed earlier.
Diffstat (limited to 'lib/libc/hash/rmd160.c')
-rw-r--r-- | lib/libc/hash/rmd160.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/hash/rmd160.c b/lib/libc/hash/rmd160.c index 3da1781c679..bea97614841 100644 --- a/lib/libc/hash/rmd160.c +++ b/lib/libc/hash/rmd160.c @@ -32,7 +32,7 @@ #include <rmd160.h> #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: rmd160.c,v 1.15 2004/05/03 17:30:15 millert Exp $"; +static char rcsid[] = "$OpenBSD: rmd160.c,v 1.16 2004/05/03 18:07:07 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #define PUT_64BIT_LE(cp, value) do { \ @@ -86,7 +86,7 @@ static char rcsid[] = "$OpenBSD: rmd160.c,v 1.15 2004/05/03 17:30:15 millert Exp #define X(i) x[i] -static u_char PADDING[RMD160_BLOCK_LENGTH] = { +static u_int8_t PADDING[RMD160_BLOCK_LENGTH] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 @@ -104,7 +104,7 @@ RMD160Init(RMD160_CTX *ctx) } void -RMD160Update(RMD160_CTX *ctx, const u_char *input, size_t len) +RMD160Update(RMD160_CTX *ctx, const u_int8_t *input, size_t len) { size_t have, off, need; @@ -150,7 +150,7 @@ RMD160Pad(RMD160_CTX *ctx) } void -RMD160Final(u_char digest[RMD160_DIGEST_LENGTH], RMD160_CTX *ctx) +RMD160Final(u_int8_t digest[RMD160_DIGEST_LENGTH], RMD160_CTX *ctx) { int i; @@ -163,7 +163,7 @@ RMD160Final(u_char digest[RMD160_DIGEST_LENGTH], RMD160_CTX *ctx) } void -RMD160Transform(u_int32_t state[5], const u_char block[RMD160_BLOCK_LENGTH]) +RMD160Transform(u_int32_t state[5], const u_int8_t block[RMD160_BLOCK_LENGTH]) { u_int32_t a, b, c, d, e, aa, bb, cc, dd, ee, t, x[16]; |