[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

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


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