- Timestamp:
- 07/18/2024 12:58:40 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/src/Core/Curve25519/Ge/Cached.php
r46586 r58752 41 41 */ 42 42 public function __construct( 43 ParagonIE_Sodium_Core_Curve25519_Fe$YplusX = null,44 ParagonIE_Sodium_Core_Curve25519_Fe$YminusX = null,45 ParagonIE_Sodium_Core_Curve25519_Fe$Z = null,46 ParagonIE_Sodium_Core_Curve25519_Fe$T2d = null43 $YplusX = null, 44 $YminusX = null, 45 $Z = null, 46 $T2d = null 47 47 ) { 48 48 if ($YplusX === null) { 49 49 $YplusX = new ParagonIE_Sodium_Core_Curve25519_Fe(); 50 } 51 if (!($YplusX 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->YplusX = $YplusX; … … 53 56 $YminusX = new ParagonIE_Sodium_Core_Curve25519_Fe(); 54 57 } 58 if (!($YminusX 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->YminusX = $YminusX; 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 $T2d = new ParagonIE_Sodium_Core_Curve25519_Fe(); 62 71 } 72 if (!($T2d 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->T2d = $T2d; 64 76 }
Note: See TracChangeset
for help on using the changeset viewer.