WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core_BLAKE2b::G() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Core_BLAKE2b{}

No Hooks.

Return

SplFixedArray.

Usage

$result = ParagonIE_Sodium_Core_BLAKE2b::G( $r, $i, $a, $b, $c, $d, $v, $m );
$r(int) (required)
-
$i(int) (required)
-
$a(int) (required)
-
$b(int) (required)
-
$c(int) (required)
-
$d(int) (required)
-
$v(SplFixedArray) (required)
-
$m(SplFixedArray) (required)
-

Code of ParagonIE_Sodium_Core_BLAKE2b::G() WP 5.8.2

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;
}