1 | <?php |
||
5 | abstract class EcdSa implements AsymmetricInterface |
||
6 | { |
||
7 | public function __construct() |
||
8 | { |
||
9 | throw new \RuntimeException('Not implemented'); |
||
10 | } |
||
11 | |||
12 | /** |
||
13 | * @param string $value |
||
14 | * @param string|resource $privateKey |
||
15 | * @return string |
||
16 | */ |
||
17 | public function sign($value, $privateKey) |
||
21 | |||
22 | /** |
||
23 | * @param string $value |
||
24 | * @param string $signature |
||
25 | * @param string|resource $publicKey |
||
26 | * @return boolean |
||
27 | */ |
||
28 | public function verify($value, $signature, $publicKey) |
||
32 | } |
||
33 |