"Fossies" - the Fresh Open Source Software Archive

Member "wordpress/wp-includes/sodium_compat/src/Core/Curve25519/Ge/Precomp.php" (21 Mar 2019, 1448 Bytes) of package /linux/www/wordpress-5.7-RC1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Precomp.php" see the Fossies "Dox" file reference documentation.

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