mirror of
https://github.com/danog/tgseclib.git
synced 2024-12-11 08:39:43 +01:00
36 lines
962 B
PHP
36 lines
962 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* sect163r1
|
||
|
*
|
||
|
* 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 sect163r1 extends Binary
|
||
|
{
|
||
|
public function __construct()
|
||
|
{
|
||
|
$this->setModulo(163, 7, 6, 3, 0);
|
||
|
$this->setCoefficients(
|
||
|
'07B6882CAAEFA84F9554FF8428BD88E246D2782AE2',
|
||
|
'0713612DCDDCB40AAB946BDA29CA91F73AF958AFD9'
|
||
|
);
|
||
|
$this->setBasePoint(
|
||
|
'0369979697AB43897789566789567F787A7876A654',
|
||
|
'00435EDB42EFAFB2989D51FEFCE3C80988F41FF883'
|
||
|
);
|
||
|
$this->setOrder(new BigInteger('03FFFFFFFFFFFFFFFFFFFF48AAB689C29CA710279B', 16));
|
||
|
}
|
||
|
}
|