You are here

public static function ParagonIE_Sodium_Core32_Curve25519::ge_p1p1_to_p2 in Automatic Updates 8

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

@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_P2

Throws

SodiumException

TypeError

2 calls to ParagonIE_Sodium_Core32_Curve25519::ge_p1p1_to_p2()
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_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 1642

Class

ParagonIE_Sodium_Core32_Curve25519
Class ParagonIE_Sodium_Core32_Curve25519

Code

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