diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2020-11-03 22:32:30 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2020-11-03 22:32:30 +0000 |
| commit | 9038e6a1e439412a7e0c10efa09cf243a5969c45 (patch) | |
| tree | f6aa21ad05e3eb3e0b1ab94414f238906a4c7f21 /sys/crypto | |
| parent | d3d79e968b67cc9a9855f9a29cf72763dec3578d (diff) | |
Notes
Diffstat (limited to 'sys/crypto')
| -rw-r--r-- | sys/crypto/sha1.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/crypto/sha1.c b/sys/crypto/sha1.c index 477e5c57eadb..85226db08bc8 100644 --- a/sys/crypto/sha1.c +++ b/sys/crypto/sha1.c @@ -91,8 +91,7 @@ static uint32_t _K[] = { 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6 }; static void sha1_step(struct sha1_ctxt *); static void -sha1_step(ctxt) - struct sha1_ctxt *ctxt; +sha1_step(struct sha1_ctxt *ctxt) { uint32_t a, b, c, d, e; size_t t, s; @@ -176,8 +175,7 @@ sha1_step(ctxt) /*------------------------------------------------------------*/ void -sha1_init(ctxt) - struct sha1_ctxt *ctxt; +sha1_init(struct sha1_ctxt *ctxt) { bzero(ctxt, sizeof(struct sha1_ctxt)); H(0) = 0x67452301; @@ -188,8 +186,7 @@ sha1_init(ctxt) } void -sha1_pad(ctxt) - struct sha1_ctxt *ctxt; +sha1_pad(struct sha1_ctxt *ctxt) { size_t padlen; /*pad length in bytes*/ size_t padstart; @@ -223,10 +220,7 @@ sha1_pad(ctxt) } void -sha1_loop(ctxt, input, len) - struct sha1_ctxt *ctxt; - const uint8_t *input; - size_t len; +sha1_loop(struct sha1_ctxt *ctxt, const uint8_t *input, size_t len) { size_t gaplen; size_t gapstart; |
