1<?php
2
3/**
4 * secp112r2
5 *
6 * PHP version 5 and 7
7 *
8 * @category  Crypt
9 * @package   EC
10 * @author    Jim Wigginton <terrafrost@php.net>
11 * @copyright 2017 Jim Wigginton
12 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
13 * @link      http://pear.php.net/package/Math_BigInteger
14 */
15
16namespace phpseclib3\Crypt\EC\Curves;
17
18use phpseclib3\Crypt\EC\BaseCurves\Prime;
19use phpseclib3\Math\BigInteger;
20
21class secp112r2 extends Prime
22{
23    public function __construct()
24    {
25        // same modulo as secp112r1
26        $this->setModulo(new BigInteger('DB7C2ABF62E35E668076BEAD208B', 16));
27        $this->setCoefficients(
28            new BigInteger('6127C24C05F38A0AAAF65C0EF02C', 16),
29            new BigInteger('51DEF1815DB5ED74FCC34C85D709', 16)
30        );
31        $this->setBasePoint(
32            new BigInteger('4BA30AB5E892B4E1649DD0928643', 16),
33            new BigInteger('ADCD46F5882E3747DEF36E956E97', 16)
34        );
35        $this->setOrder(new BigInteger('36DF0AAFD8B8D7597CA10520D04B', 16));
36    }
37}
38