[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/sodium_compat/src/Core/Curve25519/Ge/ -> P3.php (source)

   1  <?php
   2  
   3  if (class_exists('ParagonIE_Sodium_Core_Curve25519_Ge_P3', false)) {
   4      return;
   5  }
   6  
   7  /**
   8   * Class ParagonIE_Sodium_Core_Curve25519_Ge_P3
   9   */
  10  class ParagonIE_Sodium_Core_Curve25519_Ge_P3
  11  {
  12      /**
  13       * @var ParagonIE_Sodium_Core_Curve25519_Fe
  14       */
  15      public $X;
  16  
  17      /**
  18       * @var ParagonIE_Sodium_Core_Curve25519_Fe
  19       */
  20      public $Y;
  21  
  22      /**
  23       * @var ParagonIE_Sodium_Core_Curve25519_Fe
  24       */
  25      public $Z;
  26  
  27      /**
  28       * @var ParagonIE_Sodium_Core_Curve25519_Fe
  29       */
  30      public $T;
  31  
  32      /**
  33       * ParagonIE_Sodium_Core_Curve25519_Ge_P3 constructor.
  34       *
  35       * @internal You should not use this directly from another application
  36       *
  37       * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $x
  38       * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $y
  39       * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $z
  40       * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $t
  41       */
  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 = null
  47      ) {
  48          if ($x === null) {
  49              $x = new ParagonIE_Sodium_Core_Curve25519_Fe();
  50          }
  51          $this->X = $x;
  52          if ($y === null) {
  53              $y = new ParagonIE_Sodium_Core_Curve25519_Fe();
  54          }
  55          $this->Y = $y;
  56          if ($z === null) {
  57              $z = new ParagonIE_Sodium_Core_Curve25519_Fe();
  58          }
  59          $this->Z = $z;
  60          if ($t === null) {
  61              $t = new ParagonIE_Sodium_Core_Curve25519_Fe();
  62          }
  63          $this->T = $t;
  64      }
  65  }


Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1