ParagonIE_Sodium_Core32_Curve25519::ge_p1p1_to_p3

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_Curve25519::ge_p1p1_to_p3( ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1 $p )

Parameters Parameters

$p

(Required)

Return Return

(ParagonIE_Sodium_Core32_Curve25519_Ge_P3)

Source Source

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

    public static function ge_p1p1_to_p3(ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1 $p)
    {
        $r = new ParagonIE_Sodium_Core32_Curve25519_Ge_P3();
        $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);
        $r->T = self::fe_mul($p->X, $p->Y);
        return $r;
    }

Advertisement

Advertisement

Leave a Reply