aboutsummaryrefslogtreecommitdiff
path: root/tests.c
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-07-19 16:19:33 -0400
committerPaul Duncan <pabs@pablotron.org>2019-07-19 16:19:33 -0400
commit49ae79d294ac27ba837c4d734f396b5cb4bd182e (patch)
tree3e7c55468f6db831dcc4fd5e30bd66725fc01406 /tests.c
parent8f1738bfca64236a5973a717f22d4eb6555c448b (diff)
downloadsha2-49ae79d294ac27ba837c4d734f396b5cb4bd182e.tar.bz2
sha2-49ae79d294ac27ba837c4d734f396b5cb4bd182e.zip
sprinkle void * and restrict, support upper sha512/sha384 lengths, remove cruft
Diffstat (limited to 'tests.c')
-rw-r--r--tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests.c b/tests.c
index 29392e8..29e4089 100644
--- a/tests.c
+++ b/tests.c
@@ -260,12 +260,12 @@ static const struct {
sha ## size ## _init(&ctx); \
\
for (size_t j = 0; j < SHA ## size ## _TESTS[i].n; j++) { \
- sha ## size ## _push(&ctx, (const uint8_t *) s, l); \
+ sha ## size ## _push(&ctx, s, l); \
} \
\
sha ## size ## _fini(&ctx, hash); \
} else { \
- sha ## size((const uint8_t *) s, strlen(s), hash); \
+ sha ## size(s, strlen(s), hash); \
} \
\
if (memcmp(hash, SHA ## size ## _TESTS[i].h, sizeof(hash))) { \