pssht
latest
SSH server library written in PHP
Main Page
Classes
Files
File List
DHGroup14SHA1.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
DHGroup14SHA1
extends
\fpoirotte\Pssht\KEX\DHGroupSHA1Base
20
{
21
public
static
function
getName
()
22
{
23
return
'diffie-hellman-group14-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 ECE45B3D
42
C2007CB8 A163BF05 98DA4836 1C55D39A 69163FA8 FD24CF5F
43
83655D23 DCA3AD96 1C62F356 208552BB 9ED52907 7096966D
44
670C354E 4ABC9804 F1746C08 CA18217C 32905E46 2E36CE3B
45
E39E772C 180E8603 9B2783A2 EC07A28F B5C55DF0 6F4C52C9
46
DE2BCBF6 95581718 3995497C EA956AE5 15D22618 98FA0510
47
15728E5A 8AACAA68 FFFFFFFF FFFFFFFF'
48
);
49
}
50
}
fpoirotte\Pssht\KEX
Definition:
DHGroup14SHA1.php:12
fpoirotte\Pssht\KEX\DHGroupSHA1Base
Definition:
DHGroupSHA1Base.php:19
fpoirotte\Pssht\KEX\DHGroup14SHA1\getName
static getName()
Return the name of the algorithm.
Definition:
DHGroup14SHA1.php:21
fpoirotte\Pssht\KEX\DHGroup14SHA1\getPrime
static getPrime()
Definition:
DHGroup14SHA1.php:31
fpoirotte\Pssht\KEX\DHGroup14SHA1\getGenerator
static getGenerator()
Definition:
DHGroup14SHA1.php:26
fpoirotte\Pssht\KEX\DHGroup14SHA1
Definition:
DHGroup14SHA1.php:19
src
KEX
DHGroup14SHA1.php
Generated on Tue May 9 2017 12:09:56 for pssht by
1.8.11