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);
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);