[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * secp112r2 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 secp112r2 extends Prime 20 { 21 public function __construct() 22 { 23 // same modulo as secp112r1 24 $this->setModulo(new BigInteger('DB7C2ABF62E35E668076BEAD208B', 16)); 25 $this->setCoefficients( 26 new BigInteger('6127C24C05F38A0AAAF65C0EF02C', 16), 27 new BigInteger('51DEF1815DB5ED74FCC34C85D709', 16) 28 ); 29 $this->setBasePoint( 30 new BigInteger('4BA30AB5E892B4E1649DD0928643', 16), 31 new BigInteger('ADCD46F5882E3747DEF36E956E97', 16) 32 ); 33 $this->setOrder(new BigInteger('36DF0AAFD8B8D7597CA10520D04B', 16)); 34 } 35 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body