From 8d9b1ab682ebb623de0d72793599762b5310f039 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 13 Dec 2016 03:40:19 +0100 Subject: noise: update comments --- src/noise.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/noise.c b/src/noise.c index 58c25ee..7fd16b7 100644 --- a/src/noise.c +++ b/src/noise.c @@ -351,14 +351,14 @@ bool noise_handshake_create_initiation(struct message_handshake_initiation *dst, if (handshake->static_identity->has_psk) mix_key(handshake->key, handshake->chaining_key, handshake->ephemeral_public, NOISE_PUBLIC_KEY_LEN); - /* dhes */ + /* es */ mix_dh(handshake->key, handshake->chaining_key, handshake->ephemeral_private, handshake->remote_static); /* s */ if (!handshake_encrypt(dst->encrypted_static, handshake->static_identity->static_public, NOISE_PUBLIC_KEY_LEN, handshake->key, handshake->hash)) goto out; - /* dhss */ + /* ss */ mix_dh(handshake->key, handshake->chaining_key, handshake->static_identity->static_private, handshake->remote_static); /* t */ @@ -401,14 +401,14 @@ struct wireguard_peer *noise_handshake_consume_initiation(struct message_handsha if (wg->static_identity.has_psk) mix_key(key, chaining_key, e, NOISE_PUBLIC_KEY_LEN); - /* dhes */ + /* es */ mix_dh(key, chaining_key, wg->static_identity.static_private, e); /* s */ if (!handshake_decrypt(s, src->encrypted_static, sizeof(src->encrypted_static), key, hash)) goto out; - /* dhss */ + /* ss */ mix_dh(key, chaining_key, wg->static_identity.static_private, s); /* t */ @@ -469,10 +469,10 @@ bool noise_handshake_create_response(struct message_handshake_response *dst, str if (handshake->static_identity->has_psk) mix_key(handshake->key, handshake->chaining_key, handshake->ephemeral_public, NOISE_PUBLIC_KEY_LEN); - /* dhee */ + /* ee */ mix_dh(handshake->key, handshake->chaining_key, handshake->ephemeral_private, handshake->remote_ephemeral); - /* dhes */ + /* se */ mix_dh(handshake->key, handshake->chaining_key, handshake->ephemeral_private, handshake->remote_static); if (!handshake_encrypt(dst->encrypted_nothing, NULL, 0, handshake->key, handshake->hash)) @@ -526,10 +526,10 @@ struct wireguard_peer *noise_handshake_consume_response(struct message_handshake if (wg->static_identity.has_psk) mix_key(key, chaining_key, e, NOISE_PUBLIC_KEY_LEN); - /* dhee */ + /* ee */ mix_dh(key, chaining_key, ephemeral_private, e); - /* dhes */ + /* se */ mix_dh(key, chaining_key, wg->static_identity.static_private, e); /* decrypt nothing */ -- cgit v1.2.3-59-g8ed1b