summaryrefslogtreecommitdiffhomepage
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
commite1f28f3f4fd7dafa1ea036c618451318c7c7e11b (patch)
tree8ee240282e3b53b0eee5c8af706ffb4e2260a732 /src/noise.c
parent1aa27115bc324f8cc3bb72e46e8cf5aac81b6b5e (diff)
main: annotate init/exit functions to save memory
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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);