aboutsummaryrefslogtreecommitdiffstats
path: root/src/wg_noise.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@noconroy.net>2021-04-22 12:10:24 +1000
committerJason A. Donenfeld <Jason@zx2c4.com>2021-04-22 00:02:45 -0600
commitb132f7d89d6bae0e704f0dc187859e2aa4916135 (patch)
tree83c4af7d956d9ce36d315fd0002decab69d59a49 /src/wg_noise.h
parentwg_cookie: add selftest (diff)
downloadwireguard-freebsd-b132f7d89d6bae0e704f0dc187859e2aa4916135.tar.xz
wireguard-freebsd-b132f7d89d6bae0e704f0dc187859e2aa4916135.zip
wg_noise: add selftest
Signed-off-by: Matt Dunwoodie <ncon@noconroy.net>
Diffstat (limited to '')
-rw-r--r--src/wg_noise.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wg_noise.h b/src/wg_noise.h
index 8d7b54e..05ec22b 100644
--- a/src/wg_noise.h
+++ b/src/wg_noise.h
@@ -129,4 +129,8 @@ int noise_consume_response(
uint8_t ue[NOISE_PUBLIC_KEY_LEN],
uint8_t en[0 + NOISE_AUTHTAG_LEN]);
+#ifdef SELFTESTS
+void noise_counter_selftest(void);
+#endif /* SELFTESTS */
+
#endif /* __NOISE_H__ */