Syntax Syntax
Parameters Parameters
- $r
-
(Required)
- $i
-
(Required)
- $a
-
(Required)
- $b
-
(Required)
- $c
-
(Required)
- $d
-
(Required)
- $v
-
(Required)
- $m
-
(Required)
Return Return
(SplFixedArray)
Source Source
File: wp-includes/sodium_compat/src/Core/BLAKE2b.php
public static function G($r, $i, $a, $b, $c, $d, SplFixedArray $v, SplFixedArray $m) { $v[$a] = self::add364($v[$a], $v[$b], $m[self::$sigma[$r][$i << 1]]); $v[$d] = self::rotr64(self::xor64($v[$d], $v[$a]), 32); $v[$c] = self::add64($v[$c], $v[$d]); $v[$b] = self::rotr64(self::xor64($v[$b], $v[$c]), 24); $v[$a] = self::add364($v[$a], $v[$b], $m[self::$sigma[$r][($i << 1) + 1]]); $v[$d] = self::rotr64(self::xor64($v[$d], $v[$a]), 16); $v[$c] = self::add64($v[$c], $v[$d]); $v[$b] = self::rotr64(self::xor64($v[$b], $v[$c]), 63); return $v; }