[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/ -> secp160r2.php (source)

   1  <?php
   2  
   3  /**
   4   * secp160r2
   5   *
   6   * PHP version 5 and 7
   7   *
   8   * @category  Crypt
   9   * @package   EC
  10   * @author    Jim Wigginton <[email protected]>
  11   * @copyright 2017 Jim Wigginton
  12   * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
  13   * @link      http://pear.php.net/package/Math_BigInteger
  14   */
  15  
  16  namespace phpseclib3\Crypt\EC\Curves;
  17  
  18  use phpseclib3\Crypt\EC\BaseCurves\Prime;
  19  use phpseclib3\Math\BigInteger;
  20  
  21  class secp160r2 extends Prime
  22  {
  23      public function __construct()
  24      {
  25          // same as secp160k1
  26          $this->setModulo(new BigInteger('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73', 16));
  27          $this->setCoefficients(
  28              new BigInteger('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC70', 16),
  29              new BigInteger('B4E134D3FB59EB8BAB57274904664D5AF50388BA', 16)
  30          );
  31          $this->setBasePoint(
  32              new BigInteger('52DCB034293A117E1F4FF11B30F7199D3144CE6D', 16),
  33              new BigInteger('FEAFFEF2E331F296E071FA0DF9982CFEA7D43F2E', 16)
  34          );
  35          $this->setOrder(new BigInteger('0100000000000000000000351EE786A818F3A1A16B', 16));
  36      }
  37  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer