[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * brainpoolP384r1
   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 brainpoolP384r1 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                  '7BC382C63D8C150C3C72080ACE05AFA0C2BEA28E4FB22787139165EFBA91F90F8AA5814A503' .
  31                  'AD4EB04A8C7DD22CE2826',
  32                  16
  33              ),
  34              new BigInteger(
  35                  '4A8C7DD22CE28268B39B55416F0447C2FB77DE107DCD2A62E880EA53EEB62D57CB4390295DB' .
  36                  'C9943AB78696FA504C11',
  37                  16
  38              )
  39          );
  40          $this->setBasePoint(
  41              new BigInteger(
  42                  '1D1C64F068CF45FFA2A63A81B7C13F6B8847A3E77EF14FE3DB7FCAFE0CBD10E8E826E03436D' .
  43                  '646AAEF87B2E247D4AF1E',
  44                  16
  45              ),
  46              new BigInteger(
  47                  '8ABE1D7520F9C2A45CB1EB8E95CFD55262B70B29FEEC5864E19C054FF99129280E464621779' .
  48                  '1811142820341263C5315',
  49                  16
  50              )
  51          );
  52          $this->setOrder(new BigInteger(
  53              '8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC31' .
  54              '03B883202E9046565',
  55              16
  56          ));
  57      }
  58  }