mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
afd8f84c1a
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. |
||
---|---|---|
.. | ||
bug78114.phpt | ||
bug78516.phpt | ||
crypto_aead.phpt | ||
crypto_auth.phpt | ||
crypto_box.phpt | ||
crypto_core_ristretto255.phpt | ||
crypto_generichash.phpt | ||
crypto_hex.phpt | ||
crypto_kdf.phpt | ||
crypto_kx.phpt | ||
crypto_scalarmult_ristretto255.phpt | ||
crypto_scalarmult.phpt | ||
crypto_secretbox.phpt | ||
crypto_secretstream.phpt | ||
crypto_shorthash.phpt | ||
crypto_sign.phpt | ||
crypto_stream_xchacha20.phpt | ||
crypto_stream.phpt | ||
exception_trace_without_args.phpt | ||
inc_add.phpt | ||
installed.phpt | ||
php_password_hash_argon2i.phpt | ||
php_password_hash_argon2id.phpt | ||
php_password_verify.phpt | ||
pwhash_argon2i.phpt | ||
pwhash_scrypt.phpt | ||
sodium_error_001.phpt | ||
utils.phpt | ||
version.phpt |