aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/selftest
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-02-08 21:17:29 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-02-08 21:22:10 +0100
commit3126c4680a70379580e912a53aacdbf0b1e6b98e (patch)
tree7f33fb78bb6ff0691c5cbee66f08bf1659bae33e /src/selftest
parentqemu: add support for powerpc (diff)
downloadwireguard-monolithic-historical-3126c4680a70379580e912a53aacdbf0b1e6b98e.tar.xz
wireguard-monolithic-historical-3126c4680a70379580e912a53aacdbf0b1e6b98e.zip
poly1305: fix up selftest counter
Diffstat (limited to 'src/selftest')
-rw-r--r--src/selftest/poly1305.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selftest/poly1305.h b/src/selftest/poly1305.h
index 2b93d50..9428eba 100644
--- a/src/selftest/poly1305.h
+++ b/src/selftest/poly1305.h
@@ -1491,7 +1491,7 @@ bool __init poly1305_selftest(void)
bool success = true;
size_t i;
- for (i = 0; i < ARRAY_SIZE(chacha20poly1305_enc_vectors); ++i) {
+ for (i = 0; i < ARRAY_SIZE(poly1305_testvecs); ++i) {
struct poly1305_ctx poly1305;
const u8 *in = poly1305_testvecs[i].input.data;
size_t inlen = poly1305_testvecs[i].input.size;