- Timestamp:
- 07/18/2024 12:58:40 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P1p1.php
r46586 r58752 40 40 */ 41 41 public function __construct( 42 ParagonIE_Sodium_Core_Curve25519_Fe$x = null,43 ParagonIE_Sodium_Core_Curve25519_Fe$y = null,44 ParagonIE_Sodium_Core_Curve25519_Fe$z = null,45 ParagonIE_Sodium_Core_Curve25519_Fe$t = null42 $x = null, 43 $y = null, 44 $z = null, 45 $t = null 46 46 ) { 47 47 if ($x === null) { 48 48 $x = new ParagonIE_Sodium_Core_Curve25519_Fe(); 49 } 50 if (!($x instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) { 51 throw new TypeError('Argument 1 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe'); 49 52 } 50 53 $this->X = $x; … … 52 55 $y = new ParagonIE_Sodium_Core_Curve25519_Fe(); 53 56 } 57 if (!($y instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) { 58 throw new TypeError('Argument 2 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe'); 59 } 54 60 $this->Y = $y; 55 61 if ($z === null) { 56 62 $z = new ParagonIE_Sodium_Core_Curve25519_Fe(); 63 } 64 if (!($z instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) { 65 throw new TypeError('Argument 3 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe'); 57 66 } 58 67 $this->Z = $z; … … 60 69 $t = new ParagonIE_Sodium_Core_Curve25519_Fe(); 61 70 } 71 if (!($t instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) { 72 throw new TypeError('Argument 4 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe'); 73 } 62 74 $this->T = $t; 63 75 }
Note: See TracChangeset
for help on using the changeset viewer.