Subversion Repositories oidplus

Rev

Rev 874 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
827 daniel-mar 1
<?php
2
 
3
/**
4
 * brainpoolP320r1
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 brainpoolP320r1 extends Prime
20
{
21
    public function __construct()
22
    {
23
        $this->setModulo(new BigInteger('D35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F9' .
24
                                        '2B9EC7893EC28FCD412B1F1B32E27', 16));
25
        $this->setCoefficients(
26
            new BigInteger('3EE30B568FBAB0F883CCEBD46D3F3BB8A2A73513F5EB79DA66190EB085FFA9F4' .
27
                           '92F375A97D860EB4', 16),
28
            new BigInteger('520883949DFDBC42D3AD198640688A6FE13F41349554B49ACC31DCCD88453981' .
29
                           '6F5EB4AC8FB1F1A6', 16)
30
        );
31
        $this->setBasePoint(
32
            new BigInteger('43BD7E9AFB53D8B85289BCC48EE5BFE6F20137D10A087EB6E7871E2A10A599C7' .
33
                           '10AF8D0D39E20611', 16),
34
            new BigInteger('14FDD05545EC1CC8AB4093247F77275E0743FFED117182EAA9C77877AAAC6AC7' .
35
                           'D35245D1692E8EE1', 16)
36
        );
37
        $this->setOrder(new BigInteger('D35E472036BC4FB7E13C785ED201E065F98FCFA5B68F12A32D4' .
38
                                       '82EC7EE8658E98691555B44C59311', 16));
39
    }
40
}