diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-includes/sodium_compat/lib/stream-xchacha20.php --- a/wp/wp-includes/sodium_compat/lib/stream-xchacha20.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-includes/sodium_compat/lib/stream-xchacha20.php Fri Sep 05 18:52:52 2025 +0200 @@ -10,8 +10,12 @@ * @throws SodiumException * @throws TypeError */ - function sodium_crypto_stream_xchacha20($len, $nonce, $key) - { + function sodium_crypto_stream_xchacha20( + $len, + $nonce, + #[\SensitiveParameter] + $key + ) { return ParagonIE_Sodium_Compat::crypto_stream_xchacha20($len, $nonce, $key, true); } } @@ -36,8 +40,13 @@ * @throws SodiumException * @throws TypeError */ - function sodium_crypto_stream_xchacha20_xor($message, $nonce, $key) - { + function sodium_crypto_stream_xchacha20_xor( + #[\SensitiveParameter] + $message, + $nonce, + #[\SensitiveParameter] + $key + ) { return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor($message, $nonce, $key, true); } } @@ -52,8 +61,14 @@ * @throws SodiumException * @throws TypeError */ - function sodium_crypto_stream_xchacha20_xor_ic($message, $nonce, $counter, $key) - { + function sodium_crypto_stream_xchacha20_xor_ic( + #[\SensitiveParameter] + $message, + $nonce, + $counter, + #[\SensitiveParameter] + $key + ) { return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor_ic($message, $nonce, $counter, $key, true); } }