aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-12-13 03:40:19 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-12-16 06:35:58 +0100
commit8d9b1ab682ebb623de0d72793599762b5310f039 (patch)
tree4f3c6e338bbe82b9014d454c72884ec498e52d48
parenttypes: enforce consistency (diff)
downloadwireguard-monolithic-historical-8d9b1ab682ebb623de0d72793599762b5310f039.tar.xz
wireguard-monolithic-historical-8d9b1ab682ebb623de0d72793599762b5310f039.zip
noise: update comments
Diffstat (limited to '')
-rw-r--r--src/noise.c16
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 */