Changeset 49741
- Timestamp:
- 12/03/2020 05:39:03 PM (4 years ago)
- Location:
- trunk/src/wp-includes/sodium_compat
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/composer.json
r46858 r49741 55 55 }, 56 56 "require-dev": { 57 "phpunit/phpunit": "^3|^4|^5|^6|^7 "57 "phpunit/phpunit": "^3|^4|^5|^6|^7|^8|^9" 58 58 }, 59 59 "suggest": { -
trunk/src/wp-includes/sodium_compat/src/Core/SipHash.php
r46586 r49741 15 15 * @internal You should not use this directly from another application 16 16 * 17 * @param int[] $v 18 * @return int[] 17 * @param array<array-key, int> $v 18 * @return array<array-key, int> 19 * 19 20 */ 20 21 public static function sipRound(array $v) … … 27 28 28 29 # v1=ROTL(v1,13); 29 list($v[2], $v[3]) = self::rotl_64( $v[2],$v[3], 13);30 list($v[2], $v[3]) = self::rotl_64((int) $v[2], (int) $v[3], 13); 30 31 31 32 # v1 ^= v0; 32 $v[2] ^=$v[0];33 $v[3] ^=$v[1];33 $v[2] = (int) $v[2] ^ (int) $v[0]; 34 $v[3] = (int) $v[3] ^ (int) $v[1]; 34 35 35 36 # v0=ROTL(v0,32); … … 38 39 # v2 += v3; 39 40 list($v[4], $v[5]) = self::add( 40 array( $v[4],$v[5]),41 array( $v[6],$v[7])41 array((int) $v[4], (int) $v[5]), 42 array((int) $v[6], (int) $v[7]) 42 43 ); 43 44 44 45 # v3=ROTL(v3,16); 45 list($v[6], $v[7]) = self::rotl_64( $v[6],$v[7], 16);46 list($v[6], $v[7]) = self::rotl_64((int) $v[6], (int) $v[7], 16); 46 47 47 48 # v3 ^= v2; 48 $v[6] ^=$v[4];49 $v[7] ^=$v[5];49 $v[6] = (int) $v[6] ^ (int) $v[4]; 50 $v[7] = (int) $v[7] ^ (int) $v[5]; 50 51 51 52 # v0 += v3; … … 59 60 60 61 # v3 ^= v0; 61 $v[6] ^=$v[0];62 $v[7] ^=$v[1];62 $v[6] = (int) $v[6] ^ (int) $v[0]; 63 $v[7] = (int) $v[7] ^ (int) $v[1]; 63 64 64 65 # v2 += v1; … … 72 73 73 74 # v1 ^= v2;; 74 $v[2] ^=$v[4];75 $v[3] ^=$v[5];75 $v[2] = (int) $v[2] ^ (int) $v[4]; 76 $v[3] = (int) $v[3] ^ (int) $v[5]; 76 77 77 78 # v2=ROTL(v2,32) -
trunk/src/wp-includes/sodium_compat/src/Core/Util.php
r49057 r49741 904 904 * @internal You should not use this directly from another application 905 905 * 906 * Note: MB_OVERLOAD_STRING === 2, but we don't reference the constant 907 * (for nuisance-free PHP 8 support) 908 * 906 909 * @return bool 907 910 */ … … 914 917 && defined('MB_OVERLOAD_STRING') 915 918 && 916 ((int) (ini_get('mbstring.func_overload')) & MB_OVERLOAD_STRING); 919 ((int) (ini_get('mbstring.func_overload')) & 2); 920 // MB_OVERLOAD_STRING === 2 917 921 } 918 922 /** @var bool $mbstring */ -
trunk/src/wp-includes/sodium_compat/src/File.php
r49056 r49741 244 244 ParagonIE_Sodium_Compat::memzero($ephKeypair); 245 245 } catch (SodiumException $ex) { 246 /** @psalm-suppress PossiblyUndefinedVariable */ 246 247 unset($ephKeypair); 247 248 } … … 542 543 ParagonIE_Sodium_Compat::memzero($key); 543 544 } catch (SodiumException $ex) { 545 /** @psalm-suppress PossiblyUndefinedVariable */ 544 546 unset($key); 545 547 } -
trunk/src/wp-includes/sodium_compat/src/PHP52/SplFixedArray.php
r46858 r49741 103 103 public function offsetGet($index) 104 104 { 105 /** @psalm-suppress MixedReturnStatement */ 105 106 return $this->internalArray[(int) $index]; 106 107 } … … 143 144 public function current() 144 145 { 146 /** @psalm-suppress MixedReturnStatement */ 145 147 return current($this->internalArray); 146 148 }
Note: See TracChangeset
for help on using the changeset viewer.