Changeset 58752 for trunk/src/wp-includes/sodium_compat/src/File.php
- Timestamp:
- 07/18/2024 12:58:40 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/src/File.php
r52988 r58752 26 26 * @throws TypeError 27 27 */ 28 public static function box($inputFile, $outputFile, $nonce, $keyPair) 29 { 28 public static function box( 29 $inputFile, 30 $outputFile, 31 $nonce, 32 #[\SensitiveParameter] 33 $keyPair 34 ) { 30 35 /* Type checks: */ 31 36 if (!is_string($inputFile)) { … … 92 97 * @throws TypeError 93 98 */ 94 public static function box_open($inputFile, $outputFile, $nonce, $keypair) 95 { 99 public static function box_open( 100 $inputFile, 101 $outputFile, 102 $nonce, 103 #[\SensitiveParameter] 104 $keypair 105 ) { 96 106 /* Type checks: */ 97 107 if (!is_string($inputFile)) { … … 162 172 * @throws TypeError 163 173 */ 164 public static function box_seal($inputFile, $outputFile, $publicKey) 165 { 174 public static function box_seal( 175 $inputFile, 176 $outputFile, 177 #[\SensitiveParameter] 178 $publicKey 179 ) { 166 180 /* Type checks: */ 167 181 if (!is_string($inputFile)) { … … 266 280 * @throws TypeError 267 281 */ 268 public static function box_seal_open($inputFile, $outputFile, $ecdhKeypair) 269 { 282 public static function box_seal_open( 283 $inputFile, 284 $outputFile, 285 #[\SensitiveParameter] 286 $ecdhKeypair 287 ) { 270 288 /* Type checks: */ 271 289 if (!is_string($inputFile)) { … … 351 369 * @psalm-suppress FailedTypeResolution 352 370 */ 353 public static function generichash($filePath, $key = '', $outputLength = 32) 354 { 371 public static function generichash( 372 $filePath, 373 #[\SensitiveParameter] 374 $key = '', 375 $outputLength = 32 376 ) { 355 377 /* Type checks: */ 356 378 if (!is_string($filePath)) { … … 429 451 * @throws TypeError 430 452 */ 431 public static function secretbox($inputFile, $outputFile, $nonce, $key) 432 { 453 public static function secretbox( 454 $inputFile, 455 $outputFile, 456 $nonce, 457 #[\SensitiveParameter] 458 $key 459 ) { 433 460 /* Type checks: */ 434 461 if (!is_string($inputFile)) { … … 494 521 * @throws TypeError 495 522 */ 496 public static function secretbox_open($inputFile, $outputFile, $nonce, $key) 497 { 523 public static function secretbox_open( 524 $inputFile, 525 $outputFile, 526 $nonce, 527 #[\SensitiveParameter] 528 $key 529 ) { 498 530 /* Type checks: */ 499 531 if (!is_string($inputFile)) { … … 561 593 * @throws TypeError 562 594 */ 563 public static function sign($filePath, $secretKey) 564 { 595 public static function sign( 596 $filePath, 597 #[\SensitiveParameter] 598 $secretKey 599 ) { 565 600 /* Type checks: */ 566 601 if (!is_string($filePath)) { … … 657 692 * @throws Exception 658 693 */ 659 public static function verify($sig, $filePath, $publicKey) 660 { 694 public static function verify( 695 $sig, 696 $filePath, 697 $publicKey 698 ) { 661 699 /* Type checks: */ 662 700 if (!is_string($sig)) {
Note: See TracChangeset
for help on using the changeset viewer.