From: Fabio Scotoni <34964387+fscoto@users.noreply.github.com> Date: Sun, 31 Mar 2019 12:57:26 +0000 (+0200) Subject: crypto_kex_{x,xk1} man pages: address review X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=cbb5dc74e23f3b2846d044b3e595aff3b093855a;p=Monocypher.git crypto_kex_{x,xk1} man pages: address review --- diff --git a/doc/man/man3/crypto_kex_x_init_client.3monocypher b/doc/man/man3/crypto_kex_x_init_client.3monocypher index ac4200d..8bf0d3e 100644 --- a/doc/man/man3/crypto_kex_x_init_client.3monocypher +++ b/doc/man/man3/crypto_kex_x_init_client.3monocypher @@ -108,7 +108,7 @@ making a connection. This is used to authenticate the server's identity. It must thus be known to the client before making a connection. .It Fa msg1 -A 32-byte message, which is generated and sent by the client. +A 80-byte message, which is generated and sent by the client. It is the only message in the key exchange. .El .Pp @@ -203,7 +203,7 @@ int fd; /* the socket of the connection */ /* (generate random bytes in seed) */ crypto_kex_x_init_client(&client_ctx, seed, client_sk, NULL, - server_pk); + server_pk); crypto_kex_x_1(&client_ctx, session_key, buf); if (write(fd, buf, 80) != 80) return -2; diff --git a/doc/man/man3/crypto_kex_xk1_init_client.3monocypher b/doc/man/man3/crypto_kex_xk1_init_client.3monocypher index db7ac07..a9478e4 100644 --- a/doc/man/man3/crypto_kex_xk1_init_client.3monocypher +++ b/doc/man/man3/crypto_kex_xk1_init_client.3monocypher @@ -121,8 +121,7 @@ the public key will be generated for you. A 32-byte secret random number. This is a long-term secret used to identify the server. .It Fa server_pk -The public key of the server, which must be known to the client before -making a connection. +The public key of the server. This is used to authenticate the server's identity. It must thus be known to the client before making a connection. .It Fa msg1 @@ -252,7 +251,7 @@ int fd; /* the socket of the connection */ /* (generate random bytes in seed here) */ crypto_kex_xk1_init_client(&client_ctx, seed, client_sk, NULL, - server_pk); + server_pk); crypto_kex_xk1_1(&client_ctx, buf); if (write(fd, buf, 32) != 32) return -1;