WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core_Curve25519::ge_cmov_cached() public WP 1.0

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

No Hooks.

Return

ParagonIE_Sodium_Core_Curve25519_Ge_Cached.

Usage

$result = ParagonIE_Sodium_Core_Curve25519::ge_cmov_cached(;

Code of ParagonIE_Sodium_Core_Curve25519::ge_cmov_cached() WP 5.8.2

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