[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * brainpoolP320t1
   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\Prime;
  17  use phpseclib3\Math\BigInteger;
  18  
  19  class brainpoolP320t1 extends Prime
  20  {
  21      public function __construct()
  22      {
  23          $this->setModulo(new BigInteger('D35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F9' .
  24                                          '2B9EC7893EC28FCD412B1F1B32E27', 16));
  25          $this->setCoefficients(
  26              new BigInteger('D35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28' .
  27                             'FCD412B1F1B32E24', 16), // eg. -3
  28              new BigInteger('A7F561E038EB1ED560B3D147DB782013064C19F27ED27C6780AAF77FB8A547CE' .
  29                             'B5B4FEF422340353', 16)
  30          );
  31          $this->setBasePoint(
  32              new BigInteger('925BE9FB01AFC6FB4D3E7D4990010F813408AB106C4F09CB7EE07868CC136FFF' .
  33                             '3357F624A21BED52', 16),
  34              new BigInteger('63BA3A7A27483EBF6671DBEF7ABB30EBEE084E58A0B077AD42A5A0989D1EE71B' .
  35                             '1B9BC0455FB0D2C3', 16)
  36          );
  37          $this->setOrder(new BigInteger('D35E472036BC4FB7E13C785ED201E065F98FCFA5B68F12A32D4' .
  38                                         '82EC7EE8658E98691555B44C59311', 16));
  39      }
  40  }