diff options
| author | Mark O'Donovan <shiftee@posteo.net> | 2024-07-11 17:50:48 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2024-07-29 20:44:41 +0000 |
| commit | e40474f3de84f3c7b885af45d9a9391c6cf448c2 (patch) | |
| tree | e44f66ddd65347d063c1e8118abf5e654d51ec31 /sys/crypto | |
| parent | 882a725bdfc71b9fc3b70cbcc230327528f3635e (diff) | |
Diffstat (limited to 'sys/crypto')
| -rw-r--r-- | sys/crypto/siphash/siphash_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/crypto/siphash/siphash_test.c b/sys/crypto/siphash/siphash_test.c index a9af5a5ebe58..a9f5bcf062bb 100644 --- a/sys/crypto/siphash/siphash_test.c +++ b/sys/crypto/siphash/siphash_test.c @@ -115,7 +115,7 @@ SipHash24_TestVectors(void) for (i = 0; i < 16; ++i) k[i] = i; - /* Step through differnet length. */ + /* Step through different lengths */ for (i = 0; i < MAXLEN; ++i) { in[i] = i; @@ -124,14 +124,14 @@ SipHash24_TestVectors(void) SipHash_Update(&ctx, in, i); SipHash_Final(out, &ctx); - if (memcmp(out, vectors[i], 8)) + if (memcmp(out, vectors[i], 8)) { + fail++; #if 0 printf("%i: test vector failed\n", i); - else + } else { printf("%i: test vector correct\n", i); -#else - fail++; #endif + } } return ((fail == 0)); |
