for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jose\Component\Core\Util\Ecc\Primitives;
final class CurveParameters
{
/**
* Elliptic curve over the field of integers modulo a prime.
*
* @var \GMP
*/
protected $a;
protected $b;
protected $prime;
* Binary length of keys associated with these curve parameters
* @var int
protected $size;
* @param int $size
* @param \GMP $prime
* @param \GMP $a
* @param \GMP $b
public function __construct($size, \GMP $prime, \GMP $a, \GMP $b)
$this->size = $size;
$this->prime = $prime;
$this->a = $a;
$this->b = $b;
}
* @return \GMP
public function getA()
return $this->a;
public function getB()
return $this->b;
public function getPrime()
return $this->prime;
* @return int
public function getSize()
return $this->size;