pssht  latest
SSH server library written in PHP
Len128.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 class Len128 extends Base
18 {
19  final public function __construct($key)
20  {
21  $this->key = $key;
22  $this->umac = new \fpoirotte\Pssht\Algorithms\UMAC\UMAC128();
23  }
24 
25  final public static function getKeySize()
26  {
27  return 16;
28  }
29 
30  final public static function getSize()
31  {
32  return 16;
33  }
34 
35  public static function getName()
36  {
37  return 'umac-128@openssh.com';
38  }
39 }
static getName()
Return the name of the algorithm.
Definition: Len128.php:35