[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/sodium_compat/src/Core32/Curve25519/Ge/ -> P2.php (source)

   1  <?php
   2  
   3  if (class_exists('ParagonIE_Sodium_Core32_Curve25519_Ge_P2', false)) {
   4      return;
   5  }
   6  
   7  /**
   8   * Class ParagonIE_Sodium_Core32_Curve25519_Ge_P2
   9   */
  10  class ParagonIE_Sodium_Core32_Curve25519_Ge_P2
  11  {
  12      /**
  13       * @var ParagonIE_Sodium_Core32_Curve25519_Fe
  14       */
  15      public $X;
  16  
  17      /**
  18       * @var ParagonIE_Sodium_Core32_Curve25519_Fe
  19       */
  20      public $Y;
  21  
  22      /**
  23       * @var ParagonIE_Sodium_Core32_Curve25519_Fe
  24       */
  25      public $Z;
  26  
  27      /**
  28       * ParagonIE_Sodium_Core32_Curve25519_Ge_P2 constructor.
  29       *
  30       * @internal You should not use this directly from another application
  31       *
  32       * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $x
  33       * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $y
  34       * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $z
  35       */
  36      public function __construct(
  37          ParagonIE_Sodium_Core32_Curve25519_Fe $x = null,
  38          ParagonIE_Sodium_Core32_Curve25519_Fe $y = null,
  39          ParagonIE_Sodium_Core32_Curve25519_Fe $z = null
  40      ) {
  41          if ($x === null) {
  42              $x = new ParagonIE_Sodium_Core32_Curve25519_Fe();
  43          }
  44          $this->X = $x;
  45          if ($y === null) {
  46              $y = new ParagonIE_Sodium_Core32_Curve25519_Fe();
  47          }
  48          $this->Y = $y;
  49          if ($z === null) {
  50              $z = new ParagonIE_Sodium_Core32_Curve25519_Fe();
  51          }
  52          $this->Z = $z;
  53      }
  54  }


Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1