[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * brainpoolP384t1
   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 brainpoolP384t1 extends Prime
  20  {
  21      public function __construct()
  22      {
  23          $this->setModulo(new BigInteger(
  24              '8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A7' .
  25              '1874700133107EC53',
  26              16
  27          ));
  28          $this->setCoefficients(
  29              new BigInteger(
  30                  '8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901' .
  31                  'D1A71874700133107EC50',
  32                  16
  33              ), // eg. -3
  34              new BigInteger(
  35                  '7F519EADA7BDA81BD826DBA647910F8C4B9346ED8CCDC64E4B1ABD11756DCE1D2074AA263B8' .
  36                  '8805CED70355A33B471EE',
  37                  16
  38              )
  39          );
  40          $this->setBasePoint(
  41              new BigInteger(
  42                  '18DE98B02DB9A306F2AFCD7235F72A819B80AB12EBD653172476FECD462AABFFC4FF191B946' .
  43                  'A5F54D8D0AA2F418808CC',
  44                  16
  45              ),
  46              new BigInteger(
  47                  '25AB056962D30651A114AFD2755AD336747F93475B7A1FCA3B88F2B6A208CCFE469408584DC' .
  48                  '2B2912675BF5B9E582928',
  49                  16
  50              )
  51          );
  52          $this->setOrder(new BigInteger(
  53              '8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC31' .
  54              '03B883202E9046565',
  55              16
  56          ));
  57      }
  58  }