From cbb5dc74e23f3b2846d044b3e595aff3b093855a Mon Sep 17 00:00:00 2001 From: Fabio Scotoni <34964387+fscoto@users.noreply.github.com> Date: Sun, 31 Mar 2019 14:57:26 +0200 Subject: [PATCH] crypto_kex_{x,xk1} man pages: address review --- doc/man/man3/crypto_kex_x_init_client.3monocypher | 4 ++-- doc/man/man3/crypto_kex_xk1_init_client.3monocypher | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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; -- 2.47.3