diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-03 14:55:33 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-03 14:55:33 +0200 |
commit | 113faae1721bf918cb6993e13752063f73f0b173 (patch) | |
tree | 3c1299478c7b6156a77a4db67a7a093f320505ca /src/cookie.c | |
parent | global: use _WG prefix for include guards (diff) | |
download | wireguard-linux-compat-113faae1721bf918cb6993e13752063f73f0b173.tar.xz wireguard-linux-compat-113faae1721bf918cb6993e13752063f73f0b173.zip |
global: add space around variable declarations
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/cookie.c')
-rw-r--r-- | src/cookie.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cookie.c b/src/cookie.c index ec58903..d25f9ec 100644 --- a/src/cookie.c +++ b/src/cookie.c @@ -27,6 +27,7 @@ static const u8 cookie_key_label[COOKIE_KEY_LABEL_LEN] = "cookie--"; static void precompute_key(u8 key[NOISE_SYMMETRIC_KEY_LEN], const u8 pubkey[NOISE_PUBLIC_KEY_LEN], const u8 label[COOKIE_KEY_LABEL_LEN]) { struct blake2s_state blake; + blake2s_init(&blake, NOISE_SYMMETRIC_KEY_LEN); blake2s_update(&blake, label, COOKIE_KEY_LABEL_LEN); blake2s_update(&blake, pubkey, NOISE_PUBLIC_KEY_LEN); |