pssht  latest
SSH server library written in PHP
EncryptionInterface.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 
13 
17 interface EncryptionInterface extends \fpoirotte\Pssht\Algorithms\AlgorithmInterface
18 {
28  public function __construct($iv, $key);
29 
36  public static function getKeySize();
37 
44  public static function getIVSize();
45 
52  public static function getBlockSize();
53 
66  public function encrypt($seqno, $data);
67 
80  public function decrypt($seqno, $data);
81 }