diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-13 03:40:19 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-16 06:35:58 +0100 |
commit | 50f487816ef5f2a50b1b1ec141e4817cb6f2bda5 (patch) | |
tree | 974e830eb27ecbf2aefc9175dacf7b4137c6b311 | |
parent | 746e4b86eba7cd89d23a3e89b8979b795b9a4a65 (diff) |
noise: update comments
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/noise.c | 16 |
1 files 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 */ |