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

44 lines
1.6 KiB
PHP
Raw Normal View History

2018-10-25 03:00:37 +02:00
<?php
/**
* sect571r1
*
* 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 Wiggint on <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\Binary;
2018-10-25 03:00:37 +02:00
use phpseclib\Math\BigInteger;
class sect571r1 extends Binary
{
public function __construct()
{
$this->setModulo(571, 10, 5, 2, 0);
$this->setCoefficients(
'000000000000000000000000000000000000000000000000000000000000000000000000' .
'000000000000000000000000000000000000000000000000000000000000000000000001',
'02F40E7E2221F295DE297117B7F3D62F5C6A97FFCB8CEFF1CD6BA8CE4A9A18AD84FFABBD' .
'8EFA59332BE7AD6756A66E294AFD185A78FF12AA520E4DE739BACA0C7FFEFF7F2955727A'
2018-12-03 10:47:46 +01:00
);
2018-10-25 03:00:37 +02:00
$this->setBasePoint(
'0303001D34B856296C16C0D40D3CD7750A93D1D2955FA80AA5F40FC8DB7B2ABDBDE53950' .
'F4C0D293CDD711A35B67FB1499AE60038614F1394ABFA3B4C850D927E1E7769C8EEC2D19',
'037BF27342DA639B6DCCFFFEB73D69D78C6C27A6009CBBCA1980F8533921E8A684423E43' .
'BAB08A576291AF8F461BB2A8B3531D2F0485C19B16E2F1516E23DD3C1A4827AF1B8AC15B'
);
$this->setOrder(new BigInteger(
'03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF' .
2018-12-03 10:47:46 +01:00
'E661CE18FF55987308059B186823851EC7DD9CA1161DE93D5174D66E8382E9BB2FE84E47', 16
2018-10-25 03:00:37 +02:00
));
}
2018-12-03 10:47:46 +01:00
}