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.  * sect163r1
  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\Binary;
  19. use phpseclib3\Math\BigInteger;
  20.  
  21. class sect163r1 extends Binary
  22. {
  23.     public function __construct()
  24.     {
  25.         $this->setModulo(163, 7, 6, 3, 0);
  26.         $this->setCoefficients(
  27.             '07B6882CAAEFA84F9554FF8428BD88E246D2782AE2',
  28.             '0713612DCDDCB40AAB946BDA29CA91F73AF958AFD9'
  29.         );
  30.         $this->setBasePoint(
  31.             '0369979697AB43897789566789567F787A7876A654',
  32.             '00435EDB42EFAFB2989D51FEFCE3C80988F41FF883'
  33.         );
  34.         $this->setOrder(new BigInteger('03FFFFFFFFFFFFFFFFFFFF48AAB689C29CA710279B', 16));
  35.     }
  36. }
  37.