[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * secp160r2 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 secp160r2 extends Prime 20 { 21 public function __construct() 22 { 23 // same as secp160k1 24 $this->setModulo(new BigInteger('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73', 16)); 25 $this->setCoefficients( 26 new BigInteger('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC70', 16), 27 new BigInteger('B4E134D3FB59EB8BAB57274904664D5AF50388BA', 16) 28 ); 29 $this->setBasePoint( 30 new BigInteger('52DCB034293A117E1F4FF11B30F7199D3144CE6D', 16), 31 new BigInteger('FEAFFEF2E331F296E071FA0DF9982CFEA7D43F2E', 16) 32 ); 33 $this->setOrder(new BigInteger('0100000000000000000000351EE786A818F3A1A16B', 16)); 34 } 35 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body