[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * secp192k1 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\KoblitzPrime; 17 use phpseclib3\Math\BigInteger; 18 19 class secp192k1 extends KoblitzPrime 20 { 21 public function __construct() 22 { 23 $this->setModulo(new BigInteger('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37', 16)); 24 $this->setCoefficients( 25 new BigInteger('000000000000000000000000000000000000000000000000', 16), 26 new BigInteger('000000000000000000000000000000000000000000000003', 16) 27 ); 28 $this->setBasePoint( 29 new BigInteger('DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D', 16), 30 new BigInteger('9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D', 16) 31 ); 32 $this->setOrder(new BigInteger('FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D', 16)); 33 34 $this->basis = []; 35 $this->basis[] = [ 36 'a' => new BigInteger('00B3FB3400DEC5C4ADCEB8655C', -16), 37 'b' => new BigInteger('8EE96418CCF4CFC7124FDA0F', -16) 38 ]; 39 $this->basis[] = [ 40 'a' => new BigInteger('01D90D03E8F096B9948B20F0A9', -16), 41 'b' => new BigInteger('42E49819ABBA9474E1083F6B', -16) 42 ]; 43 $this->beta = $this->factory->newInteger(new BigInteger('447A96E6C647963E2F7809FEAAB46947F34B0AA3CA0BBA74', -16)); 44 } 45 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body