WordPress at a glance
function is not described

ParagonIE_Sodium_Core_Curve25519::ge_madd() public WP 1.0

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

No Hooks.


ParagonIE_Sodium_Core_Curve25519_Ge_P1p1. Null. Nothing.


$result = ParagonIE_Sodium_Core_Curve25519::ge_madd(;

Code of ParagonIE_Sodium_Core_Curve25519::ge_madd() WP 5.7.1

public static function ge_madd(
    ParagonIE_Sodium_Core_Curve25519_Ge_P1p1 $R,
    ParagonIE_Sodium_Core_Curve25519_Ge_P3 $p,
    ParagonIE_Sodium_Core_Curve25519_Ge_Precomp $q
) {
    $r = clone $R;
    $r->X = self::fe_add($p->Y, $p->X);
    $r->Y = self::fe_sub($p->Y, $p->X);
    $r->Z = self::fe_mul($r->X, $q->yplusx);
    $r->Y = self::fe_mul($r->Y, $q->yminusx);
    $r->T = self::fe_mul($q->xy2d, $p->T);
    $t0 = self::fe_add(clone $p->Z, clone $p->Z);
    $r->X = self::fe_sub($r->Z, $r->Y);
    $r->Y = self::fe_add($r->Z, $r->Y);
    $r->Z = self::fe_add($t0, $r->T);
    $r->T = self::fe_sub($t0, $r->T);

    return $r;