You are here

public static function ParagonIE_Sodium_Core32_Curve25519::ge_p1p1_to_p3 in Automatic Updates 7

Same name and namespace in other branches
  1. 8 vendor/paragonie/sodium_compat/src/Core32/Curve25519.php \ParagonIE_Sodium_Core32_Curve25519::ge_p1p1_to_p3()

@internal You should not use this directly from another application

Parameters

ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1 $p:

Return value

ParagonIE_Sodium_Core32_Curve25519_Ge_P3

Throws

SodiumException

TypeError

3 calls to ParagonIE_Sodium_Core32_Curve25519::ge_p1p1_to_p3()
ParagonIE_Sodium_Core32_Curve25519::ge_double_scalarmult_vartime in vendor/paragonie/sodium_compat/src/Core32/Curve25519.php
@internal You should not use this directly from another application
ParagonIE_Sodium_Core32_Curve25519::ge_mul_l in vendor/paragonie/sodium_compat/src/Core32/Curve25519.php
multiply by the order of the main subgroup l = 2^252+27742317777372353535851937790883648493
ParagonIE_Sodium_Core32_Curve25519::ge_scalarmult_base in vendor/paragonie/sodium_compat/src/Core32/Curve25519.php
@internal You should not use this directly from another application

File

vendor/paragonie/sodium_compat/src/Core32/Curve25519.php, line 1659

Class

ParagonIE_Sodium_Core32_Curve25519
Class ParagonIE_Sodium_Core32_Curve25519

Code

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