Rev 846 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
827 | daniel-mar | 1 | <?php |
2 | |||
3 | /** |
||
4 | * brainpoolP192r1 |
||
5 | * |
||
6 | * PHP version 5 and 7 |
||
7 | * |
||
874 | daniel-mar | 8 | * @category Crypt |
9 | * @package EC |
||
827 | daniel-mar | 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 | |||
16 | namespace phpseclib3\Crypt\EC\Curves; |
||
17 | |||
18 | use phpseclib3\Crypt\EC\BaseCurves\Prime; |
||
19 | use phpseclib3\Math\BigInteger; |
||
20 | |||
21 | class brainpoolP192r1 extends Prime |
||
22 | { |
||
23 | public function __construct() |
||
24 | { |
||
25 | $this->setModulo(new BigInteger('C302F41D932A36CDA7A3463093D18DB78FCE476DE1A86297', 16)); |
||
26 | $this->setCoefficients( |
||
27 | new BigInteger('6A91174076B1E0E19C39C031FE8685C1CAE040E5C69A28EF', 16), |
||
28 | new BigInteger('469A28EF7C28CCA3DC721D044F4496BCCA7EF4146FBF25C9', 16) |
||
29 | ); |
||
30 | $this->setBasePoint( |
||
31 | new BigInteger('C0A0647EAAB6A48753B033C56CB0F0900A2F5C4853375FD6', 16), |
||
32 | new BigInteger('14B690866ABD5BB88B5F4828C1490002E6773FA2FA299B8F', 16) |
||
33 | ); |
||
34 | $this->setOrder(new BigInteger('C302F41D932A36CDA7A3462F9E9E916B5BE8F1029AC4ACC1', 16)); |
||
35 | } |
||
36 | } |