Gabriel Caruso
ce1d69a1f6
Use int instead of integer in type errors
...
PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
2018-02-04 19:08:23 +01:00
Frank Denis
9d236d63f9
ext/sodium: untab tests
2017-10-02 22:28:46 +02:00
Frank Denis
1dc47286d1
ext/sodium: import secretstream test
2017-10-02 22:28:33 +02:00
Frank Denis
0663ca135d
ext/sodium: fix pwhash_argon2i test
2017-10-01 16:00:41 +02:00
Frank Denis
3691f36913
sodium ext: add bindings for sodium_pad() and sodium_unpad()
2017-08-24 16:12:18 +02:00
Frank Denis
271f0c4f90
sodium ext: Constants were renamed SODIUM_*
...
Adjust error messages accordingly.
2017-08-24 10:50:34 +02:00
Sammy Kaye Powers
e8f552aeba
Remove param values from backtrace in exception thrown from ZPP throw
2017-08-19 15:18:41 +02:00
Frank Denis
34df3cdafa
sodium ext: skip scrypt if it is not available
...
scrypt was removed from minimal libsodium builds in version 1.0.13
2017-07-30 15:41:34 +02:00
Frank Denis
650f68c36e
sodium ext: fix tests/pwhash_argon2i description
2017-07-30 15:05:21 +02:00
Frank Denis
613c8dd7b0
sodium ext: let crypto_pwhash() accept an optional algorithm identifier
2017-07-29 13:04:54 +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
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
a5258ed645
sodium ext: remove function names before exception messages
2017-07-12 08:48:09 +01: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
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