/var/www/html/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P2.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php

if (class_exists('ParagonIE_Sodium_Core_Curve25519_Ge_P2'false)) {
    return;
}

/**
 * Class ParagonIE_Sodium_Core_Curve25519_Ge_P2
 */
class ParagonIE_Sodium_Core_Curve25519_Ge_P2
{
    
/**
     * @var ParagonIE_Sodium_Core_Curve25519_Fe
     */
    
public $X;

    
/**
     * @var ParagonIE_Sodium_Core_Curve25519_Fe
     */
    
public $Y;

    
/**
     * @var ParagonIE_Sodium_Core_Curve25519_Fe
     */
    
public $Z;

    
/**
     * ParagonIE_Sodium_Core_Curve25519_Ge_P2 constructor.
     *
     * @internal You should not use this directly from another application
     *
     * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $x
     * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $y
     * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $z
     */
    
public function __construct(
        
$x null,
        
$y null,
        
$z null
    
) {
        if (
$x === null) {
            
$x = new ParagonIE_Sodium_Core_Curve25519_Fe();
        }
        if (!(
$x instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) {
            throw new 
TypeError('Argument 1 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe');
        }
        
$this->$x;
        if (
$y === null) {
            
$y = new ParagonIE_Sodium_Core_Curve25519_Fe();
        }
        if (!(
$y instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) {
            throw new 
TypeError('Argument 2 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe');
        }
        
$this->$y;
        if (
$z === null) {
            
$z = new ParagonIE_Sodium_Core_Curve25519_Fe();
        }
        if (!(
$z instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) {
            throw new 
TypeError('Argument 3 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe');
        }
        
$this->$z;
    }
}