From: Loup Vaillant Date: Wed, 1 Nov 2017 16:59:13 +0000 (+0100) Subject: Manual review: applying CuleX's advice X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=e1f2ac4e408baaf6912c758dfd4ec3ea2eb2fc50;p=Monocypher.git Manual review: applying CuleX's advice Replaced 'evil' by 'malicious' --- diff --git a/doc/man/man3/crypto_key_exchange.3monocypher b/doc/man/man3/crypto_key_exchange.3monocypher index 7dd203c..e64d6e7 100644 --- a/doc/man/man3/crypto_key_exchange.3monocypher +++ b/doc/man/man3/crypto_key_exchange.3monocypher @@ -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);