aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/noise.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-06-22 03:49:57 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-06-24 02:06:26 +0200
commit3130692343c13a8b3fc52a830df42cd437ccef2e (patch)
tree99883031052030fc5da413b9967a3741bd8a70d2 /src/noise.c
parentversion: bump snapshot (diff)
downloadwireguard-monolithic-historical-3130692343c13a8b3fc52a830df42cd437ccef2e.tar.xz
wireguard-monolithic-historical-3130692343c13a8b3fc52a830df42cd437ccef2e.zip
main: annotate init/exit functions to save memory
Diffstat (limited to 'src/noise.c')
-rw-r--r--src/noise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/noise.c b/src/noise.c
index 9583ab1..9bad788 100644
--- a/src/noise.c
+++ b/src/noise.c
@@ -28,7 +28,7 @@ static u8 handshake_init_hash[NOISE_HASH_LEN] __read_mostly;
static u8 handshake_init_chaining_key[NOISE_HASH_LEN] __read_mostly;
static atomic64_t keypair_counter = ATOMIC64_INIT(0);
-void noise_init(void)
+void __init noise_init(void)
{
struct blake2s_state blake;
blake2s(handshake_init_chaining_key, handshake_name, NULL, NOISE_HASH_LEN, sizeof(handshake_name), 0);