From c80cbfaa5f13a847a3b789f3d14f5e725c9126cb Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 19 Jan 2018 17:13:09 +0100 Subject: poly1305: add poly-specific self-tests --- src/crypto/chacha20poly1305.c | 1 + src/crypto/chacha20poly1305.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/crypto') 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 */ -- cgit v1.2.3-59-g8ed1b