Subversion Repositories oidplus

Rev

Rev 846 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. /**
  4.  * brainpoolP384r1
  5.  *
  6.  * PHP version 5 and 7
  7.  *
  8.  * @category  Crypt
  9.  * @package   EC
  10.  * @author    Jim Wigginton <terrafrost@php.net>
  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 brainpoolP384r1 extends Prime
  22. {
  23.     public function __construct()
  24.     {
  25.         $this->setModulo(new BigInteger(
  26.             '8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A7' .
  27.             '1874700133107EC53',
  28.             16
  29.         ));
  30.         $this->setCoefficients(
  31.             new BigInteger(
  32.                 '7BC382C63D8C150C3C72080ACE05AFA0C2BEA28E4FB22787139165EFBA91F90F8AA5814A503' .
  33.                 'AD4EB04A8C7DD22CE2826',
  34.                 16
  35.             ),
  36.             new BigInteger(
  37.                 '4A8C7DD22CE28268B39B55416F0447C2FB77DE107DCD2A62E880EA53EEB62D57CB4390295DB' .
  38.                 'C9943AB78696FA504C11',
  39.                 16
  40.             )
  41.         );
  42.         $this->setBasePoint(
  43.             new BigInteger(
  44.                 '1D1C64F068CF45FFA2A63A81B7C13F6B8847A3E77EF14FE3DB7FCAFE0CBD10E8E826E03436D' .
  45.                 '646AAEF87B2E247D4AF1E',
  46.                 16
  47.             ),
  48.             new BigInteger(
  49.                 '8ABE1D7520F9C2A45CB1EB8E95CFD55262B70B29FEEC5864E19C054FF99129280E464621779' .
  50.                 '1811142820341263C5315',
  51.                 16
  52.             )
  53.         );
  54.         $this->setOrder(new BigInteger(
  55.             '8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC31' .
  56.             '03B883202E9046565',
  57.             16
  58.         ));
  59.     }
  60. }
  61.