1 | <?php |
||
36 | final class PrivateKey |
||
37 | { |
||
38 | /** |
||
39 | * @var GeneratorPoint |
||
40 | */ |
||
41 | private $generator; |
||
42 | |||
43 | /** |
||
44 | * @var \GMP |
||
45 | */ |
||
46 | private $secretMultiplier; |
||
47 | |||
48 | /** |
||
49 | * @var GmpMath |
||
50 | */ |
||
51 | private $adapter; |
||
52 | |||
53 | /** |
||
54 | * @param GmpMath $adapter |
||
55 | * @param GeneratorPoint $generator |
||
56 | * @param \GMP $secretMultiplier |
||
57 | */ |
||
58 | public function __construct(GmpMath $adapter, GeneratorPoint $generator, \GMP $secretMultiplier) |
||
64 | |||
65 | /** |
||
66 | * {@inheritDoc} |
||
67 | * @see \Jose\Component\Core\Util\Ecc\Crypto\Key\PrivateKey::getPublicKey() |
||
68 | */ |
||
69 | public function getPublicKey() |
||
73 | |||
74 | /** |
||
75 | * {@inheritDoc} |
||
76 | * @see \Jose\Component\Core\Util\Ecc\Crypto\Key\PrivateKey::getPoint() |
||
77 | */ |
||
78 | public function getPoint() |
||
82 | |||
83 | /** |
||
84 | * {@inheritDoc} |
||
85 | * @see \Jose\Component\Core\Util\Ecc\Crypto\Key\PrivateKey::getCurve() |
||
86 | */ |
||
87 | public function getCurve() |
||
91 | |||
92 | /** |
||
93 | * {@inheritDoc} |
||
94 | * @see \Jose\Component\Core\Util\Ecc\Crypto\Key\PrivateKey::getSecret() |
||
95 | */ |
||
96 | public function getSecret() |
||
100 | |||
101 | /** |
||
102 | * {@inheritDoc} |
||
103 | * @see \Jose\Component\Core\Util\Ecc\Crypto\Key\PrivateKey::createExchange() |
||
104 | */ |
||
105 | public function createExchange(PublicKey $recipient = null) |
||
114 | } |
||
115 |