[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * sect163r2
   5   *
   6   * PHP version 5 and 7
   7   *
   8   * @author    Jim Wigginton <terrafrost@php.net>
   9   * @copyright 2017 Jim Wigginton
  10   * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
  11   * @link      http://pear.php.net/package/Math_BigInteger
  12   */
  13  
  14  namespace phpseclib3\Crypt\EC\Curves;
  15  
  16  use phpseclib3\Crypt\EC\BaseCurves\Binary;
  17  use phpseclib3\Math\BigInteger;
  18  
  19  class sect163r2 extends Binary
  20  {
  21      public function __construct()
  22      {
  23          $this->setModulo(163, 7, 6, 3, 0);
  24          $this->setCoefficients(
  25              '000000000000000000000000000000000000000001',
  26              '020A601907B8C953CA1481EB10512F78744A3205FD'
  27          );
  28          $this->setBasePoint(
  29              '03F0EBA16286A2D57EA0991168D4994637E8343E36',
  30              '00D51FBC6C71A0094FA2CDD545B11C5C0C797324F1'
  31          );
  32          $this->setOrder(new BigInteger('040000000000000000000292FE77E70C12A4234C33', 16));
  33      }
  34  }