aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc/selftest
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-18 15:00:53 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-18 15:00:53 +0200
commit0695cd5bd5db8c369402d892d7199f6620b9e4bf (patch)
tree7a9c57c08577513cdcc8d6291832b5b9cd980153 /src/crypto/zinc/selftest
parentcurve25519-arm: only compile if symbols will be used (diff)
downloadwireguard-monolithic-historical-0695cd5bd5db8c369402d892d7199f6620b9e4bf.tar.xz
wireguard-monolithic-historical-0695cd5bd5db8c369402d892d7199f6620b9e4bf.zip
chacha20poly1305: add __init to selftest helper functions
Diffstat (limited to '')
-rw-r--r--src/crypto/zinc/selftest/chacha20poly1305.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/zinc/selftest/chacha20poly1305.h b/src/crypto/zinc/selftest/chacha20poly1305.h
index aa375ae..22e20b2 100644
--- a/src/crypto/zinc/selftest/chacha20poly1305.h
+++ b/src/crypto/zinc/selftest/chacha20poly1305.h
@@ -7628,7 +7628,7 @@ xchacha20poly1305_dec_vectors[] __initconst = { {
0x9d }
} };
-static inline void
+static void __init
chacha20poly1305_selftest_encrypt_bignonce(u8 *dst, const u8 *src,
const size_t src_len, const u8 *ad,
const size_t ad_len,
@@ -7668,7 +7668,7 @@ chacha20poly1305_selftest_encrypt_bignonce(u8 *dst, const u8 *src,
memzero_explicit(&b, sizeof(b));
}
-static inline void
+static void __init
chacha20poly1305_selftest_encrypt(u8 *dst, const u8 *src, const size_t src_len,
const u8 *ad, const size_t ad_len,
const u8 *nonce, const size_t nonce_len,
@@ -7685,7 +7685,7 @@ chacha20poly1305_selftest_encrypt(u8 *dst, const u8 *src, const size_t src_len,
BUG();
}
-static inline bool
+static bool __init
decryption_success(bool func_ret, bool expect_failure, int memcmp_result)
{
if (expect_failure)