updated example with key exchange

This commit is contained in:
Orson Peters 2013-03-24 23:33:27 +01:00
parent 6dcff448da
commit 784d7001e0
1 changed files with 4 additions and 1 deletions

View File

@ -151,7 +151,10 @@ ed25519_create_keypair(other_public_key, other_private_key, seed);
/* do a key exchange with other_public_key */
ed25519_key_exchange(shared_secret, other_public_key, private_key);
/* the magic is that ed25519_key_exchange(shared_secret, public_key, other_private_key); would result in the same shared_secret */
/*
the magic here is that ed25519_key_exchange(shared_secret, public_key,
other_private_key); would result in the same shared_secret
*/
```