[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * secp224k1 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 secp224k1 extends KoblitzPrime 20 { 21 public function __construct() 22 { 23 $this->setModulo(new BigInteger('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFE56D', 16)); 24 $this->setCoefficients( 25 new BigInteger('00000000000000000000000000000000000000000000000000000000', 16), 26 new BigInteger('00000000000000000000000000000000000000000000000000000005', 16) 27 ); 28 $this->setBasePoint( 29 new BigInteger('A1455B334DF099DF30FC28A169A467E9E47075A90F7E650EB6B7A45C', 16), 30 new BigInteger('7E089FED7FBA344282CAFBD6F7E319F7C0B0BD59E2CA4BDB556D61A5', 16) 31 ); 32 $this->setOrder(new BigInteger('010000000000000000000000000001DCE8D2EC6184CAF0A971769FB1F7', 16)); 33 34 $this->basis = []; 35 $this->basis[] = [ 36 'a' => new BigInteger('00B8ADF1378A6EB73409FA6C9C637D', -16), 37 'b' => new BigInteger('94730F82B358A3776A826298FA6F', -16) 38 ]; 39 $this->basis[] = [ 40 'a' => new BigInteger('01DCE8D2EC6184CAF0A972769FCC8B', -16), 41 'b' => new BigInteger('4D2100BA3DC75AAB747CCF355DEC', -16) 42 ]; 43 $this->beta = $this->factory->newInteger(new BigInteger('01F178FFA4B17C89E6F73AECE2AAD57AF4C0A748B63C830947B27E04', -16)); 44 } 45 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body