- Timestamp:
- 07/18/2024 12:58:40 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/lib/stream-xchacha20.php
r54150 r58752 11 11 * @throws TypeError 12 12 */ 13 function sodium_crypto_stream_xchacha20($len, $nonce, $key) 14 { 13 function sodium_crypto_stream_xchacha20( 14 $len, 15 $nonce, 16 #[\SensitiveParameter] 17 $key 18 ) { 15 19 return ParagonIE_Sodium_Compat::crypto_stream_xchacha20($len, $nonce, $key, true); 16 20 } … … 37 41 * @throws TypeError 38 42 */ 39 function sodium_crypto_stream_xchacha20_xor($message, $nonce, $key) 40 { 43 function sodium_crypto_stream_xchacha20_xor( 44 #[\SensitiveParameter] 45 $message, 46 $nonce, 47 #[\SensitiveParameter] 48 $key 49 ) { 41 50 return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor($message, $nonce, $key, true); 42 51 } … … 53 62 * @throws TypeError 54 63 */ 55 function sodium_crypto_stream_xchacha20_xor_ic($message, $nonce, $counter, $key) 56 { 64 function sodium_crypto_stream_xchacha20_xor_ic( 65 #[\SensitiveParameter] 66 $message, 67 $nonce, 68 $counter, 69 #[\SensitiveParameter] 70 $key 71 ) { 57 72 return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor_ic($message, $nonce, $counter, $key, true); 58 73 }
Note: See TracChangeset
for help on using the changeset viewer.