Home
last modified time | relevance | path

Searched refs:leftRotate (Results 1 – 2 of 2) sorted by relevance

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
DChaCha20.php282 $a+= $b; $d = self::leftRotate(intval($d) ^ intval($a), 16);
283 $c+= $d; $b = self::leftRotate(intval($b) ^ intval($c), 12);
284 $a+= $b; $d = self::leftRotate(intval($d) ^ intval($a), 8);
285 $c+= $d; $b = self::leftRotate(intval($b) ^ intval($c), 7);
360 $x0+= $x4; $x12 = self::leftRotate(intval($x12) ^ intval($x0), 16);
361 $x8+= $x12; $x4 = self::leftRotate(intval($x4) ^ intval($x8), 12);
362 $x0+= $x4; $x12 = self::leftRotate(intval($x12) ^ intval($x0), 8);
363 $x8+= $x12; $x4 = self::leftRotate(intval($x4) ^ intval($x8), 7);
365 $x1+= $x5; $x13 = self::leftRotate(intval($x13) ^ intval($x1), 16);
366 $x9+= $x13; $x5 = self::leftRotate(intval($x5) ^ intval($x9), 12);
[all …]
DSalsa20.php407 protected static function leftRotate($x, $n) function in phpseclib3\\Crypt\\Salsa20
432 $b ^= self::leftRotate($a + $d, 7);
433 $c ^= self::leftRotate($b + $a, 9);
434 $d ^= self::leftRotate($c + $b, 13);
435 $a ^= self::leftRotate($d + $c, 18);