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