]> git.codecow.com Git - Monocypher.git/commit
Improved the key exchange API
authorLoup Vaillant <loup@loup-vaillant.fr>
Wed, 13 Mar 2019 23:10:26 +0000 (00:10 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 14 Mar 2019 07:41:33 +0000 (08:41 +0100)
commit5bf2ba5f93d955240fdb5c1089e02d74f9b61555
tree16c61506454a765db54853305c6a98546e096f10
parent3b78ed08fbe6e7caf145cc761604b7126700c3e2
Improved the key exchange API

crypto_kex_ctx is now differentiated into a client specific context, and
a server specific context.  The distinction is entirely artificial (it's
the same thing under the hood), but it prevents some misuses at compile
time, making the API easier to use.

The name of the arguments have also been changed: "local" and "remote"
have been replaced by "client" and "server" whenever appropriate.  The
previous names made implementation easier, but their meaning was context
dependent, and thus confusing. The new names have stable meanings, and
thus easier to document and use.

TODO: update the manual to reflect those changes.
src/monocypher.c
src/monocypher.h
tests/speed.c
tests/test.c