pssht  latest
SSH server library written in PHP
KeyInterface.php
1 <?php
2 
3 /*
4 * This file is part of pssht.
5 *
6 * (c) François Poirotte <clicky@erebot.net>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11 
12 namespace fpoirotte\Pssht\Key;
13 
17 interface KeyInterface extends \fpoirotte\Pssht\Algorithms\AlgorithmInterface
18 {
28  public function serialize(\fpoirotte\Pssht\Wire\Encoder $encoder);
29 
30  public static function unserialize(\fpoirotte\Pssht\Wire\Decoder $decoder, $private = null);
31 
41  public function sign($message);
42 
56  public function check($message, $signature);
57 }
serialize(\fpoirotte\Pssht\Wire\Encoder $encoder)
check($message, $signature)