]> git.codecow.com Git - Monocypher.git/commitdiff
Manual review: applying CuleX's advice
authorLoup Vaillant <loup@loup-vaillant.fr>
Wed, 1 Nov 2017 16:59:13 +0000 (17:59 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Wed, 1 Nov 2017 16:59:13 +0000 (17:59 +0100)
Replaced 'evil' by 'malicious'

doc/man/man3/crypto_key_exchange.3monocypher

index 7dd203c38cd2e587f5a12b6fe9d559bb0a51aa04..e64d6e7f3e10a9563db35edf2ac6b9fc5a875308 100644 (file)
@@ -90,8 +90,8 @@ const uint8_t their_pk  [32]; /* Their public key   */
 const uint8_t your_sk   [32]; /* Your secret key    */
 uint8_t       shared_key[32]; /* Shared session key */
 if (crypto_key_exchange(shared_key, your_sk, their_pk) != 0) {
-    /* Their public key is evil.     */
-    /* The exchange must be aborted. */
+    /* Their public key is malicious. */
+    /* The exchange must be aborted.  */
 }
 /* Wipe secrets if they are no longer needed */
 crypto_wipe(your_sk, 32);
@@ -106,8 +106,8 @@ const uint8_t their_pk     [32]; /* Their public key          */
 const uint8_t your_sk      [32]; /* Your secret key           */
 uint8_t       shared_secret[32]; /* Shared secret (NOT a key) */
 if (crypto_x25519(shared_secret, your_sk, their_pk) != 0) {
-    /* Their public key is evil.     */
-    /* The exchange must be aborted. */
+    /* Their public key is malicious. */
+    /* The exchange must be aborted.  */
 }
 /* Wipe secrets if they are no longer needed */
 crypto_wipe(your_sk, 32);