- Timestamp:
- 07/18/2024 12:58:40 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P2.php
r46586 r58752 35 35 */ 36 36 public function __construct( 37 ParagonIE_Sodium_Core_Curve25519_Fe$x = null,38 ParagonIE_Sodium_Core_Curve25519_Fe$y = null,39 ParagonIE_Sodium_Core_Curve25519_Fe$z = null37 $x = null, 38 $y = null, 39 $z = null 40 40 ) { 41 41 if ($x === null) { 42 42 $x = new ParagonIE_Sodium_Core_Curve25519_Fe(); 43 } 44 if (!($x instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) { 45 throw new TypeError('Argument 1 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe'); 43 46 } 44 47 $this->X = $x; … … 46 49 $y = new ParagonIE_Sodium_Core_Curve25519_Fe(); 47 50 } 51 if (!($y instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) { 52 throw new TypeError('Argument 2 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe'); 53 } 48 54 $this->Y = $y; 49 55 if ($z === null) { 50 56 $z = new ParagonIE_Sodium_Core_Curve25519_Fe(); 51 57 } 58 if (!($z instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) { 59 throw new TypeError('Argument 3 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe'); 60 } 52 61 $this->Z = $z; 53 62 }
Note: See TracChangeset
for help on using the changeset viewer.