Skip to content

Conversation

@paragonie-security
Copy link
Contributor

There are applications that need direct access to XChaCha20 and not just the AEAD XChaCha20-Poly1305 API. These often resort to using the sodium_compat internal class instead of libsodium directly.

This change (if adopted into ext/sodium and shipped with PHP 8.1+) will mitigate this misuse of an internal sodium_compat API.

There are applications that need direct access to XChaCha20 and not just the AEAD XChaCha20-Poly1305 API. These often resort to using the sodium_compat internal class instead of libsodium directly.

This change (if adopted into ext/sodium and shipped with PHP 8.1+) will mitigate this misuse of an internal sodium_compat API.
@jedisct1
Copy link
Owner

Sure! Thank you so much for this, Scott!

@jedisct1 jedisct1 merged commit 6b82a1e into jedisct1:master Apr 13, 2021
paragonie-security added a commit to paragonie/sodium_compat that referenced this pull request Apr 13, 2021
@paragonie-security paragonie-security deleted the blah branch April 13, 2021 17:53
paragonie-security added a commit to paragonie/php-src that referenced this pull request Apr 15, 2021
Paragon Initiative Enterprises is aware of PHP applications that use sodium_compat's ParagonIE\Sodium\Core\XChaCha20 class directly for stream encryption.

Greater performance and security assurance is offered by exposing libsodium's crypto_stream_xchacha20 API to PHP users.

It's acceptable to only include this change in PHP 8.1+; the offending applications are more than welcome to either install ext/sodium from PECL or upgrade to 8.1 when it comes out later this year.

Ref: jedisct1/libsodium-php#211
paragonie-security added a commit to paragonie/php-src that referenced this pull request Apr 15, 2021
Paragon Initiative Enterprises is aware of PHP applications that use sodium_compat's ParagonIE\Sodium\Core\XChaCha20 class directly for stream encryption.

Greater performance and security assurance is offered by exposing libsodium's crypto_stream_xchacha20 API to PHP users.

It's acceptable to only include this change in PHP 8.1+; the offending applications are more than welcome to either install ext/sodium from PECL or upgrade to 8.1 when it comes out later this year.

Ref: jedisct1/libsodium-php#211
nikic pushed a commit to php/php-src that referenced this pull request Apr 19, 2021
Paragon Initiative Enterprises is aware of PHP applications that use sodium_compat's ParagonIE\Sodium\Core\XChaCha20 class directly for stream encryption.

Greater performance and security assurance is offered by exposing libsodium's crypto_stream_xchacha20 API to PHP users.

It's acceptable to only include this change in PHP 8.1+; the offending applications are more than welcome to either install ext/sodium from PECL or upgrade to 8.1 when it comes out later this year.

Ref: jedisct1/libsodium-php#211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants