diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-07-19 16:19:33 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-07-19 16:19:33 -0400 |
commit | 49ae79d294ac27ba837c4d734f396b5cb4bd182e (patch) | |
tree | 3e7c55468f6db831dcc4fd5e30bd66725fc01406 /tests.c | |
parent | 8f1738bfca64236a5973a717f22d4eb6555c448b (diff) | |
download | sha2-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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))) { \ |