[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  
   3  if (class_exists('ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp', false)) {
   4      return;
   5  }
   6  
   7  /**
   8   * Class ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp
   9   */
  10  class ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp
  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 $xy2d;
  26  
  27      /**
  28       * ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp constructor.
  29       *
  30       * @internal You should not use this directly from another application
  31       *
  32       * @param ParagonIE_Sodium_Core32_Curve25519_Fe $yplusx
  33       * @param ParagonIE_Sodium_Core32_Curve25519_Fe $yminusx
  34       * @param ParagonIE_Sodium_Core32_Curve25519_Fe $xy2d
  35       * @throws SodiumException
  36       * @throws TypeError
  37       */
  38      public function __construct(
  39          ParagonIE_Sodium_Core32_Curve25519_Fe $yplusx = null,
  40          ParagonIE_Sodium_Core32_Curve25519_Fe $yminusx = null,
  41          ParagonIE_Sodium_Core32_Curve25519_Fe $xy2d = null
  42      ) {
  43          if ($yplusx === null) {
  44              $yplusx = ParagonIE_Sodium_Core32_Curve25519::fe_0();
  45          }
  46          $this->yplusx = $yplusx;
  47          if ($yminusx === null) {
  48              $yminusx = ParagonIE_Sodium_Core32_Curve25519::fe_0();
  49          }
  50          $this->yminusx = $yminusx;
  51          if ($xy2d === null) {
  52              $xy2d = ParagonIE_Sodium_Core32_Curve25519::fe_0();
  53          }
  54          $this->xy2d = $xy2d;
  55      }
  56  }


Generated: Mon Oct 7 01:00:03 2024 Cross-referenced by PHPXref 0.7.1