pssht
latest
SSH server library written in PHP
Main Page
Classes
Files
File List
DHGroupSHA1Base.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\KEX
;
13
19
abstract
class
DHGroupSHA1Base
implements
20
\fpoirotte\Pssht\KEX\KEXInterface
,
21
\fpoirotte\Pssht\KEX\DHGroupSHA1Interface
22
{
23
public
function
hash
($data)
24
{
25
return
sha1($data,
true
);
26
}
27
28
public
static
function
addHandlers(\
fpoirotte
\Pssht\
Transport
$transport)
29
{
30
$transport->setHandler(
31
\
fpoirotte
\Pssht\Messages\KEXDH\INIT::getMessageId(),
32
new
\
fpoirotte
\Pssht\Handlers\KEXDH\INIT()
33
);
34
}
35
}
fpoirotte\Pssht\KEX\KEXInterface
Definition:
KEXInterface.php:17
fpoirotte\Pssht\KEX
Definition:
DHGroup14SHA1.php:12
fpoirotte\Pssht\Transport
Definition:
Transport.php:19
fpoirotte\Pssht\KEX\DHGroupSHA1Interface
Definition:
DHGroupSHA1Interface.php:19
fpoirotte\Pssht\KEX\DHGroupSHA1Base\hash
hash($data)
Definition:
DHGroupSHA1Base.php:23
fpoirotte\Pssht\KEX\DHGroupSHA1Base
Definition:
DHGroupSHA1Base.php:19
fpoirotte
src
KEX
DHGroupSHA1Base.php
Generated on Tue May 9 2017 12:09:56 for pssht by
1.8.11