From 0695cd5bd5db8c369402d892d7199f6620b9e4bf Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 18 Sep 2018 15:00:53 +0200 Subject: chacha20poly1305: add __init to selftest helper functions --- src/crypto/zinc/selftest/chacha20poly1305.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/crypto/zinc/selftest/chacha20poly1305.h') 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) -- cgit v1.2.3-59-g8ed1b