ParagonIE_Sodium_Core_Curve25519::ge_cmov_cached() –

You appear to be a bot. Output may be restricted

Description

Usage

$ParagonIE_Sodium_Core_Curve25519_Ge_Cached = ParagonIE_Sodium_Core_Curve25519::ge_cmov_cached( $t, $u, $b );

Parameters

$t
( ParagonIE_Sodium_Core_Curve25519_Ge_Cached ) required
$u
( ParagonIE_Sodium_Core_Curve25519_Ge_Cached ) required
$b
( int ) required

Returns

ParagonIE_Sodium_Core_Curve25519_Ge_Cached

Source

File name: wordpress/wp-includes/sodium_compat/src/Core/Curve25519.php
Lines:

1 to 13 of 13
    public static function ge_cmov_cached(
        ParagonIE_Sodium_Core_Curve25519_Ge_Cached $t,
        ParagonIE_Sodium_Core_Curve25519_Ge_Cached $u,
        $b
    ) {
        $b &= 1;
        $ret = new ParagonIE_Sodium_Core_Curve25519_Ge_Cached();
        $ret->YplusX  = self::fe_cmov($t->YplusX,  $u->YplusX,  $b);
        $ret->YminusX = self::fe_cmov($t->YminusX, $u->YminusX, $b);
        $ret->Z       = self::fe_cmov($t->Z,       $u->Z,       $b);
        $ret->T2d     = self::fe_cmov($t->T2d,     $u->T2d,     $b);
        return $ret;
    }
 

 View on GitHub View on Trac