ParagonIE_Sodium_Core32_Curve25519::ge_p1p1_to_p2

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_Curve25519::ge_p1p1_to_p2( ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1 $p )

Parameters Parameters

$p

(Required)

Return Return

(ParagonIE_Sodium_Core32_Curve25519_Ge_P2)

Source Source

File: wp-includes/sodium_compat/src/Core32/Curve25519.php

    public static function ge_p1p1_to_p2(ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1 $p)
    {
        $r = new ParagonIE_Sodium_Core32_Curve25519_Ge_P2();
        $r->X = self::fe_mul($p->X, $p->T);
        $r->Y = self::fe_mul($p->Y, $p->Z);
        $r->Z = self::fe_mul($p->Z, $p->T);
        return $r;
    }

Advertisement

Advertisement

Leave a Reply