[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

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


Generated: Fri Nov 15 01:00:02 2024 Cross-referenced by PHPXref 0.7.1