]> granicus.if.org Git - php/commit
sodium ext: update the crypto_kx_*() API to the libsodium one
authorFrank Denis <jedisct1@php.net>
Tue, 11 Jul 2017 20:23:44 +0000 (22:23 +0200)
committerJoe Watkins <krakjoe@php.net>
Wed, 12 Jul 2017 07:25:38 +0000 (08:25 +0100)
commit6ac6d2c64a00ec1b993818f4ac52af3eeb38228b
treec5f28705f23ba536173aa45f71810503291c3ab7
parentdfac71d0968872c1c404180b32ff8b8a2f9d2af6
sodium ext: update the crypto_kx_*() API to the libsodium one

The crypto_kx API initially present in the PHP bindings was a prototype
that was not part of libsodium.

This implements the one from libsodium >= 1.0.12.

We can later leverage the native libsodium functions if we decide that
1.0.12 is the minimum version we want to support.
ext/sodium/libsodium.c
ext/sodium/php_libsodium.h
ext/sodium/tests/crypto_kx.phpt