diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-18 15:00:53 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-18 15:00:53 +0200 |
commit | c10704254d5147ecc076df8ce79ae338c7e4f76a (patch) | |
tree | 6e7ad8752478f6ca0a4d3b44b39bd3a24c226784 /src | |
parent | d46826532803c8fb9b3f63375c3d6f69df6e6ba9 (diff) |
chacha20poly1305: add __init to selftest helper functions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto/zinc/selftest/chacha20poly1305.h | 6 |
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) |