Viel neues
This commit is contained in:
37
qa-tool/htdocs/oidc/phpseclib/Crypt/EC/Curves/secp112r2.php
Normal file
37
qa-tool/htdocs/oidc/phpseclib/Crypt/EC/Curves/secp112r2.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* secp112r2
|
||||
*
|
||||
* PHP version 5 and 7
|
||||
*
|
||||
* @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
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\Crypt\EC\Curves;
|
||||
|
||||
use phpseclib3\Crypt\EC\BaseCurves\Prime;
|
||||
use phpseclib3\Math\BigInteger;
|
||||
|
||||
class secp112r2 extends Prime
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
// same modulo as secp112r1
|
||||
$this->setModulo(new BigInteger('DB7C2ABF62E35E668076BEAD208B', 16));
|
||||
$this->setCoefficients(
|
||||
new BigInteger('6127C24C05F38A0AAAF65C0EF02C', 16),
|
||||
new BigInteger('51DEF1815DB5ED74FCC34C85D709', 16)
|
||||
);
|
||||
$this->setBasePoint(
|
||||
new BigInteger('4BA30AB5E892B4E1649DD0928643', 16),
|
||||
new BigInteger('ADCD46F5882E3747DEF36E956E97', 16)
|
||||
);
|
||||
$this->setOrder(new BigInteger('36DF0AAFD8B8D7597CA10520D04B', 16));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user