Formats
1 year ago
Traits
1 year ago
.htaccess
1 year ago
AsymmetricKey.php
1 year ago
BlockCipher.php
1 year ago
PrivateKey.php
1 year ago
PublicKey.php
1 year ago
StreamCipher.php
1 year ago
SymmetricKey.php
1 year ago
index.html
1 year ago
web.config
1 year ago
PrivateKey.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * PrivateKey interface |
| 5 | * |
| 6 | * @author Jim Wigginton <terrafrost@php.net> |
| 7 | * @copyright 2009 Jim Wigginton |
| 8 | * @license http://www.opensource.org/licenses/mit-license.html MIT License |
| 9 | * @link http://phpseclib.sourceforge.net |
| 10 | */ |
| 11 | |
| 12 | declare(strict_types=1); |
| 13 | |
| 14 | namespace phpseclib3\Crypt\Common; |
| 15 | |
| 16 | /** |
| 17 | * PrivateKey interface |
| 18 | * |
| 19 | * @author Jim Wigginton <terrafrost@php.net> |
| 20 | */ |
| 21 | interface PrivateKey |
| 22 | { |
| 23 | public function sign($message); |
| 24 | //public function decrypt($ciphertext); |
| 25 | public function getPublicKey(); |
| 26 | public function toString(string $type, array $options = []): string; |
| 27 | |
| 28 | /** |
| 29 | * @return static |
| 30 | */ |
| 31 | public function withPassword(?string $password = null): PrivateKey; |
| 32 | } |
| 33 |