1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-12-03 18:17:49 +01:00
tgseclib/phpseclib/Crypt/EC/Curves/brainpoolP224r1.php

36 lines
1.2 KiB
PHP
Raw Normal View History

2018-10-25 03:00:37 +02:00
<?php
/**
* brainpoolP224r1
*
* PHP version 5 and 7
*
* @category Crypt
2019-06-28 02:10:40 +02:00
* @package EC
2018-10-25 03:00:37 +02:00
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2017 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link http://pear.php.net/package/Math_BigInteger
*/
2019-06-28 02:10:40 +02:00
namespace phpseclib\Crypt\EC\Curves;
2018-10-25 03:00:37 +02:00
2019-06-28 02:10:40 +02:00
use phpseclib\Crypt\EC\BaseCurves\Prime;
2018-10-25 03:00:37 +02:00
use phpseclib\Math\BigInteger;
class brainpoolP224r1 extends Prime
{
public function __construct()
{
$this->setModulo(new BigInteger('D7C134AA264366862A18302575D1D787B09F075797DA89F57EC8C0FF', 16));
$this->setCoefficients(
new BigInteger('68A5E62CA9CE6C1C299803A6C1530B514E182AD8B0042A59CAD29F43', 16),
new BigInteger('2580F63CCFE44138870713B1A92369E33E2135D266DBB372386C400B', 16)
);
$this->setBasePoint(
new BigInteger('0D9029AD2C7E5CF4340823B2A87DC68C9E4CE3174C1E6EFDEE12C07D', 16),
new BigInteger('58AA56F772C0726F24C6B89E4ECDAC24354B9E99CAA3F6D3761402CD', 16)
);
$this->setOrder(new BigInteger('D7C134AA264366862A18302575D0FB98D116BC4B6DDEBCA3A5A7939F', 16));
}
}