[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * secp128r2 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 secp128r2 extends Prime 20 { 21 public function __construct() 22 { 23 // same as secp128r1 24 $this->setModulo(new BigInteger('FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF', 16)); 25 $this->setCoefficients( 26 new BigInteger('D6031998D1B3BBFEBF59CC9BBFF9AEE1', 16), 27 new BigInteger('5EEEFCA380D02919DC2C6558BB6D8A5D', 16) 28 ); 29 $this->setBasePoint( 30 new BigInteger('7B6AA5D85E572983E6FB32A7CDEBC140', 16), 31 new BigInteger('27B6916A894D3AEE7106FE805FC34B44', 16) 32 ); 33 $this->setOrder(new BigInteger('3FFFFFFF7FFFFFFFBE0024720613B5A3', 16)); 34 } 35 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body