diff options
author | Frank Denis <jedisct1@php.net> | 2017-07-11 22:23:44 +0200 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2017-07-12 08:25:38 +0100 |
commit | 6ac6d2c64a00ec1b993818f4ac52af3eeb38228b (patch) | |
tree | c5f28705f23ba536173aa45f71810503291c3ab7 /ext/sodium/php_libsodium.h | |
parent | dfac71d0968872c1c404180b32ff8b8a2f9d2af6 (diff) | |
download | php-git-6ac6d2c64a00ec1b993818f4ac52af3eeb38228b.tar.gz |
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.
Diffstat (limited to 'ext/sodium/php_libsodium.h')
-rw-r--r-- | ext/sodium/php_libsodium.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/sodium/php_libsodium.h b/ext/sodium/php_libsodium.h index 93d92e3e03..6e6e3fbe2d 100644 --- a/ext/sodium/php_libsodium.h +++ b/ext/sodium/php_libsodium.h @@ -59,7 +59,12 @@ PHP_FUNCTION(sodium_crypto_generichash); PHP_FUNCTION(sodium_crypto_generichash_final); PHP_FUNCTION(sodium_crypto_generichash_init); PHP_FUNCTION(sodium_crypto_generichash_update); -PHP_FUNCTION(sodium_crypto_kx); +PHP_FUNCTION(sodium_crypto_kx_client_session_keys); +PHP_FUNCTION(sodium_crypto_kx_keypair); +PHP_FUNCTION(sodium_crypto_kx_publickey); +PHP_FUNCTION(sodium_crypto_kx_secretkey); +PHP_FUNCTION(sodium_crypto_kx_seed_keypair); +PHP_FUNCTION(sodium_crypto_kx_server_session_keys); PHP_FUNCTION(sodium_crypto_pwhash); PHP_FUNCTION(sodium_crypto_pwhash_str); PHP_FUNCTION(sodium_crypto_pwhash_str_verify); |