pssht
latest
SSH server library written in PHP
Main Page
Classes
Files
File List
DHGroup1SHA1.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
class
DHGroup1SHA1
extends
\fpoirotte\Pssht\KEX\DHGroupSHA1Base
20
{
21
public
static
function
getName
()
22
{
23
return
'diffie-hellman-group1-sha1'
;
24
}
25
26
public
static
function
getGenerator
()
27
{
28
return
2;
29
}
30
31
public
static
function
getPrime
()
32
{
33
return
str_replace(
34
"\r\n "
,
35
''
,
36
'
37
FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1
38
29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD
39
EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245
40
E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED
41
EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381
42
FFFFFFFF FFFFFFFF'
43
);
44
}
45
}
fpoirotte\Pssht\KEX\DHGroup1SHA1
Definition:
DHGroup1SHA1.php:19
fpoirotte\Pssht\KEX
Definition:
DHGroup14SHA1.php:12
fpoirotte\Pssht\KEX\DHGroup1SHA1\getGenerator
static getGenerator()
Definition:
DHGroup1SHA1.php:26
fpoirotte\Pssht\KEX\DHGroupSHA1Base
Definition:
DHGroupSHA1Base.php:19
fpoirotte\Pssht\KEX\DHGroup1SHA1\getName
static getName()
Return the name of the algorithm.
Definition:
DHGroup1SHA1.php:21
fpoirotte\Pssht\KEX\DHGroup1SHA1\getPrime
static getPrime()
Definition:
DHGroup1SHA1.php:31
src
KEX
DHGroup1SHA1.php
Generated on Tue May 9 2017 12:09:56 for pssht by
1.8.11