WordPress at a glance
function is not described

ParagonIE_Sodium_Core_Curve25519::cmov() public WP 1.0

Conditional move

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

No Hooks.


ParagonIE_Sodium_Core_Curve25519_Ge_Precomp. Null. Nothing.


$result = ParagonIE_Sodium_Core_Curve25519::cmov(;

Code of ParagonIE_Sodium_Core_Curve25519::cmov() WP 5.7.1

public static function cmov(
    ParagonIE_Sodium_Core_Curve25519_Ge_Precomp $t,
    ParagonIE_Sodium_Core_Curve25519_Ge_Precomp $u,
) {
    if (!is_int($b)) {
        throw new InvalidArgumentException('Expected an integer.');
    return new ParagonIE_Sodium_Core_Curve25519_Ge_Precomp(
        self::fe_cmov($t->yplusx, $u->yplusx, $b),
        self::fe_cmov($t->yminusx, $u->yminusx, $b),
        self::fe_cmov($t->xy2d, $u->xy2d, $b)