php-src/ext/sodium/tests
Paragon Initiative Enterprises afd8f84c1a
Add sodium_crypto_stream_xchacha20_xor_ic()
There are many use-cases where a PHP user is currently using sodium_compat's implementation of this low-level XChaCha20 API. For example, multi-part message processing (in low-memory settings) for a ciphertext that was encrypted with XChaCha20-Poly1305 (rather than the secretstream API).

Adding this function to ext/sodium offers better performance and lowers users' memory usage with the polyfill, and ensures that users coming from other languages that provide libsodium bindings have a more consistent experience with our bindings. This is a win-win.

This patch follows the libsodium precedent of adding functions instead of optional parameters to existing functions. The parameter order is also consistent with the C API.

https://doc.libsodium.org/advanced/stream_ciphers/xchacha20#usage

Closes GH-8276.
2022-04-04 15:43:42 +02:00
..
bug78114.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
bug78516.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_aead.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_auth.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_box.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_core_ristretto255.phpt Comment out ristretto255 scalar invert test 2021-08-10 12:04:47 +02:00
crypto_generichash.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_hex.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_kdf.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_kx.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_scalarmult_ristretto255.phpt Improve ristretto255 scalarmult exception messages 2021-08-10 11:19:29 +02:00
crypto_scalarmult.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_secretbox.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_secretstream.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_shorthash.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_sign.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
crypto_stream_xchacha20.phpt Add sodium_crypto_stream_xchacha20_xor_ic() 2022-04-04 15:43:42 +02:00
crypto_stream.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
exception_trace_without_args.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
inc_add.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
installed.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
php_password_hash_argon2i.phpt Add some missing EXTENSIONS sections to misc tests 2021-06-14 14:52:44 +02:00
php_password_hash_argon2id.phpt Add some missing EXTENSIONS sections to misc tests 2021-06-14 14:52:44 +02:00
php_password_verify.phpt Add some missing EXTENSIONS sections to misc tests 2021-06-14 14:52:44 +02:00
pwhash_argon2i.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
pwhash_scrypt.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
sodium_error_001.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
utils.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
version.phpt run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00