summaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-01-19 17:13:09 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-01-19 17:16:28 +0100
commitc80cbfaa5f13a847a3b789f3d14f5e725c9126cb (patch)
tree2cd20026bb609e2153367be6738e4a1733716d03 /src/crypto
parentcurve25519-fiat32: uninline certain functions (diff)
downloadwireguard-monolithic-historical-c80cbfaa5f13a847a3b789f3d14f5e725c9126cb.tar.xz
wireguard-monolithic-historical-c80cbfaa5f13a847a3b789f3d14f5e725c9126cb.zip
poly1305: add poly-specific self-tests
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/chacha20poly1305.c1
-rw-r--r--src/crypto/chacha20poly1305.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/chacha20poly1305.c b/src/crypto/chacha20poly1305.c
index 22681a3..89cf055 100644
--- a/src/crypto/chacha20poly1305.c
+++ b/src/crypto/chacha20poly1305.c
@@ -855,3 +855,4 @@ bool xchacha20poly1305_decrypt(u8 *dst, const u8 *src, const size_t src_len,
}
#include "../selftest/chacha20poly1305.h"
+#include "../selftest/poly1305.h"
diff --git a/src/crypto/chacha20poly1305.h b/src/crypto/chacha20poly1305.h
index f7824c7..62b48b9 100644
--- a/src/crypto/chacha20poly1305.h
+++ b/src/crypto/chacha20poly1305.h
@@ -87,6 +87,7 @@ static inline void chacha20poly1305_deinit_simd(bool was_on)
#ifdef DEBUG
bool chacha20poly1305_selftest(void);
+bool poly1305_selftest(void);
#endif
#endif /* _WG_CHACHA20POLY1305_H */