[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

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


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