]> git.codecow.com Git - Monocypher.git/commitdiff
crypto_kex_{x,xk1} man pages: address review
authorFabio Scotoni <34964387+fscoto@users.noreply.github.com>
Sun, 31 Mar 2019 12:57:26 +0000 (14:57 +0200)
committerFabio Scotoni <34964387+fscoto@users.noreply.github.com>
Sun, 31 Mar 2019 12:57:26 +0000 (14:57 +0200)
doc/man/man3/crypto_kex_x_init_client.3monocypher
doc/man/man3/crypto_kex_xk1_init_client.3monocypher

index ac4200dd570f98fcc83d9b6f44233205e99b5e54..8bf0d3eb1930d8332aec0b1334c0ae99cd2200d8 100644 (file)
@@ -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;
index db7ac070e7d91aca55d606820086268f53c3b818..a9478e4e115f5a02a65fea170037e60b7582764b 100644 (file)
@@ -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;