mirror of
https://github.com/danog/tgseclib.git
synced 2024-12-15 02:17:05 +01:00
37 lines
999 B
PHP
37 lines
999 B
PHP
<?php
|
|
|
|
/**
|
|
* sect163r2
|
|
*
|
|
* PHP version 5 and 7
|
|
*
|
|
* @category Crypt
|
|
* @package ECDSA
|
|
* @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
|
|
*/
|
|
|
|
namespace phpseclib\Crypt\ECDSA\Curves;
|
|
|
|
use phpseclib\Crypt\ECDSA\BaseCurves\Binary;
|
|
use phpseclib\Math\BigInteger;
|
|
|
|
class sect163r2 extends Binary
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->setModulo(163, 7, 6, 3, 0);
|
|
$this->setCoefficients(
|
|
'000000000000000000000000000000000000000001',
|
|
'020A601907B8C953CA1481EB10512F78744A3205FD'
|
|
);
|
|
$this->setBasePoint(
|
|
'03F0EBA16286A2D57EA0991168D4994637E8343E36',
|
|
'00D51FBC6C71A0094FA2CDD545B11C5C0C797324F1'
|
|
);
|
|
$this->setOrder(new BigInteger('040000000000000000000292FE77E70C12A4234C33', 16));
|
|
}
|
|
}
|