Frank Denis
8a2e747a7b
sodium ext: remove redundant and obsolete macros
2017-07-22 17:50:22 +02:00
Frank Denis
09b15e4f30
sodium ext: implement sodium_crypto_kdf()
...
Also add zend_parse_parameters_none() statements where appropriate.
2017-07-18 14:42:15 +02:00
Frank Denis
aa32d989c7
sodium ext: remove unused sodium_randombytes_*() prototypes
2017-07-13 18:59:58 +02:00
Frank Denis
b071fcb81d
sodium ext: add bindings for keygen() functions
...
This is the recommended way to generate keys correctly for all operations
using a single key, since libsodium 1.0.12.
2017-07-12 23:29:48 +02:00
Frank Denis
8e8fbf51f7
sodium ext: sort prototypes
2017-07-12 23:06:43 +02:00
Frank Denis
6ac6d2c64a
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.
2017-07-12 08:25:38 +01:00
Frank Denis
dfac71d096
Revert "fix macro redifinitions"
...
This reverts commit cbbf579f21
.
2017-07-12 08:25:35 +01:00
Anatol Belski
cbbf579f21
fix macro redifinitions
2017-07-11 10:01:37 +02:00
Remi Collet
d269aa2003
fix authors
2017-07-11 07:43:56 +02:00
Paragon Initiative Enterprises
5cfa26c181
Squashed commit - Add ext/sodium
...
RFC: https://wiki.php.net/rfc/libsodium
Licensing: https://web.archive.org/web/20170710161517/https://github.com/jedisct1/libsodium-php/issues/127
2017-07-11 07:25:50 +02:00